linted code

This commit is contained in:
Lorenzo Venerandi
2026-02-17 13:13:06 +01:00
parent 2c7b612587
commit c023d808c6
8 changed files with 65 additions and 34 deletions

View File

@@ -58,7 +58,9 @@ async def lifespan(app: FastAPI):
)
webpages = None
except IOError:
app_logger.warning("Can't read webpages file. Using randomly generated links.")
app_logger.warning(
"Can't read webpages file. Using randomly generated links."
)
app.state.webpages = webpages
# Initialize canary counter
@@ -82,9 +84,7 @@ DASHBOARD AVAILABLE AT
f"Canary token will appear after {config.canary_token_tries} tries"
)
else:
app_logger.info(
"No canary token configured (set CANARY_TOKEN_URL to enable)"
)
app_logger.info("No canary token configured (set CANARY_TOKEN_URL to enable)")
yield
@@ -146,4 +146,4 @@ def create_app() -> FastAPI:
return application
app = create_app()
app = create_app()