Return default value when return value is None

This commit is contained in:
PCoder 2020-03-06 15:47:25 +05:30
parent af70824d6a
commit 2f16f2440e
1 changed files with 1 additions and 1 deletions

View File

@ -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__)))