fix indent

This commit is contained in:
Daniil Karandashov 2019-12-14 18:30:55 +03:00
parent c3f51c412b
commit 3e9e557d28

View File

@ -186,8 +186,8 @@ def import_settings_from_environment_variables(settings, environ=None):
str_to_bool), str_to_bool),
) )
if "SYNCSERVER_SECRET_FILE" in environ: if "SYNCSERVER_SECRET_FILE" in environ:
settings["syncserver.secret"] = open(environ["SYNCSERVER_SECRET_FILE"]) settings["syncserver.secret"] = \
.read().strip() open(environ["SYNCSERVER_SECRET_FILE"]).read().strip()
for key, name, convert in SETTINGS_FROM_ENVIRON: for key, name, convert in SETTINGS_FROM_ENVIRON:
try: try:
settings[name] = convert(environ[key]) settings[name] = convert(environ[key])