Fix broken indentation
This commit is contained in:
parent
b1921940f0
commit
f520b22dd0
@ -29,13 +29,13 @@ import os
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
|
||||
def get_env_value(env_variable, default=None):
|
||||
try:
|
||||
return os.environ[env_variable]
|
||||
except KeyError:
|
||||
if default is not None:
|
||||
try:
|
||||
return os.environ[env_variable]
|
||||
except KeyError:
|
||||
if default is not None:
|
||||
return default
|
||||
error_msg = 'Set the {} environment variable'.format(env_variable)
|
||||
raise Exception(error_msg)
|
||||
raise Exception(error_msg)
|
||||
|
||||
|
||||
# Quick-start development settings - unsuitable for production
|
||||
|
Loading…
Reference in New Issue
Block a user