Fix broken indentation

This commit is contained in:
Mario Hüttel 2022-01-02 02:06:36 +01:00
parent b1921940f0
commit f520b22dd0

View File

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