Skip to content

Commit

Permalink
fixed debug ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
clemenstyp committed Mar 22, 2024
1 parent b42d092 commit 77ef1c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Snackbar_app.py
Expand Up @@ -71,8 +71,11 @@ def get_default_options(default_host="0.0.0.0", default_port="5000", default_url
else:
default_options.url_prefix = default_url_prefix

if os.getenv("SNACKBAR_DEBUG").lower() == 'true':
default_options.debug = True
if debug := os.getenv("SNACKBAR_DEBUG"):
if debug.lower() == 'true':
default_options.debug = True
else:
default_options.debug = False
else:
default_options.debug = False

Expand Down

0 comments on commit 77ef1c7

Please sign in to comment.