automated commit 16/07/2020 16:11:03

pull/46/head
Junkbite 4 years ago
parent 2cb9934a94
commit 853c9a2574

@ -64,6 +64,8 @@ if DEV:
settingsFilename = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'dev-{}'.format(BASE_CONFIG))
else:
settingsFilename = os.path.join(os.path.abspath(os.path.dirname(__file__)), BASE_CONFIG)
sys.tracebacklimit = 0 # dont show stack traces in prod mode
config = configparser.ConfigParser()
config.read(settingsFilename)

@ -463,7 +463,9 @@ def sync_content():
def exit_system():
"""we dont want to exit if in docker"""
if not is_in_docker:
if is_in_docker:
raise Exception
else:
sys.exit(0)
@ -474,5 +476,8 @@ sync_content()
if is_in_docker:
while True:
try:
time.sleep(instance_sync_interval_seconds)
sync_content()
except Exception as inst:
d = inst

Loading…
Cancel
Save