We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4baf682 commit 313bc2bCopy full SHA for 313bc2b
1 file changed
src/potato_util/_base.py
@@ -88,8 +88,11 @@ def is_debug_mode() -> bool:
88
89
_is_debug = False
90
_debug = os.getenv("DEBUG", "").strip().lower()
91
- if _debug and is_truthy(_debug):
92
- _is_debug = True
+ try:
+ if _debug and is_truthy(_debug):
93
+ _is_debug = True
94
+ except ValueError:
95
+ pass
96
97
_env = os.getenv("ENV", "").strip().lower()
98
if (_env == "development") and (_debug == ""):
0 commit comments