Skip to content

Commit 84061a7

Browse files
committed
Bug fix: Set default value to MWI_DEV and MWI_TEST
1 parent b259cbf commit 84061a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_matlab_proxy/mwi_environment_variables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ def get_env_name_development():
6666

6767
def is_development_mode_enabled():
6868
"""Returns true if the app is in development mode."""
69-
return os.getenv(get_env_name_development()).lower() == "true"
69+
return os.environ.get(get_env_name_development(), "false").lower() == "true"
7070

7171

7272
def is_testing_mode_enabled():
7373
"""Returns true if the app is in testing mode."""
7474
return (
7575
is_development_mode_enabled()
76-
and os.getenv(get_env_name_testing()).lower() == "true"
76+
and os.environ.get(get_env_name_testing(), "false").lower() == "true"
7777
)

0 commit comments

Comments
 (0)