linted code
This commit is contained in:
10
src/app.py
10
src/app.py
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user