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
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
|
|
||||||
def get_env_value(env_variable, default=None):
|
def get_env_value(env_variable, default=None):
|
||||||
try:
|
try:
|
||||||
return os.environ[env_variable]
|
return os.environ[env_variable]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
if default is not None:
|
if default is not None:
|
||||||
return default
|
return default
|
||||||
error_msg = 'Set the {} environment variable'.format(env_variable)
|
error_msg = 'Set the {} environment variable'.format(env_variable)
|
||||||
raise Exception(error_msg)
|
raise Exception(error_msg)
|
||||||
|
|
||||||
|
|
||||||
# Quick-start development settings - unsuitable for production
|
# Quick-start development settings - unsuitable for production
|
||||||
|
Loading…
Reference in New Issue
Block a user