From 254579c9cd77ff20a852fe91fc89133f09975e2e Mon Sep 17 00:00:00 2001 From: null Date: Tue, 4 Jun 2024 23:38:09 +0000 Subject: [PATCH] fix: error type --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index b7809ec..de77334 100644 --- a/app.py +++ b/app.py @@ -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)