Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
solarw committed Oct 1, 2024
1 parent 54745e3 commit ba12664
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions operate/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ async def _kill_server(request: Request) -> JSONResponse:
"""Kill backend server from inside."""
os.kill(os.getpid(), signal.SIGINT)

@app.get(f"/stop_all_services")
async def _kill_server(request: Request) -> JSONResponse:
@app.get("/stop_all_services")
async def _stop_all_services(request: Request) -> JSONResponse:
"""Kill backend server from inside."""
logger.info("Stopping services on demand...")
pause_all_services()
Expand Down
2 changes: 1 addition & 1 deletion operate/services/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def _build_host(self, force: bool = True, chain_id: str = "100") -> None:
try:
sleep(3)
shutil.rmtree(build)
except:
except: # noqa
# sleep and try again. exception if fails
print_exc()
sleep(3)
Expand Down

0 comments on commit ba12664

Please sign in to comment.