@ -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
sys.exit(0)
@ -474,5 +476,8 @@ sync_content()
while True:
try:
time.sleep(instance_sync_interval_seconds)
sync_content()
except Exception as inst:
d = inst