From 2f16f2440ea2695c45e497f92fd4f20f5cc7e1ae Mon Sep 17 00:00:00 2001 From: PCoder Date: Fri, 6 Mar 2020 15:47:25 +0530 Subject: [PATCH] Return default value when return value is None --- dynamicweb/settings/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamicweb/settings/base.py b/dynamicweb/settings/base.py index 735cd913..ca8996d1 100644 --- a/dynamicweb/settings/base.py +++ b/dynamicweb/settings/base.py @@ -42,7 +42,7 @@ def int_env(val, default_value=0): "details: {}").format( val, str(e))) - return return_value + return return_value if return_value is not None else default_value BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))