Skip to content

Commit

Permalink
fix: error type
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandoataoldotcom authored Jun 4, 2024
1 parent eadfb2c commit 254579c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

try:
app.secret_key = os.environ['APP_SECRET_KEY']
except AttributeError:
except KeyError:
logger.warn(f'could not retrieve APP_SECRET_KEY from env, falling back to generated secret')
app.secret_key = secrets.token_urlsafe(24)

Expand Down

0 comments on commit 254579c

Please sign in to comment.