If something crash, try sometime after

This commit is contained in:
Michel Roux 2020-03-02 16:16:50 +01:00
parent 664eafe4a7
commit 4ea5e946d0

6
app.py
View File

@ -1,3 +1,4 @@
import time
from operator import attrgetter, itemgetter
from flask import redirect, render_template, request, url_for
@ -166,4 +167,9 @@ def admin_edit(link_id=None):
if __name__ == '__main__':
while True:
try:
app.run('0.0.0.0', APP_PORT, IS_DEBUG)
except Exception:
time.sleep(10)
pass