Return default value when return value is None
This commit is contained in:
parent
af70824d6a
commit
2f16f2440e
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ def int_env(val, default_value=0):
|
||||||
"details: {}").format(
|
"details: {}").format(
|
||||||
val, str(e)))
|
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__)))
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
Loading…
Reference in a new issue