If something crash, try sometime after
This commit is contained in:
parent
664eafe4a7
commit
4ea5e946d0
6
app.py
6
app.py
@ -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
|
||||
|
Reference in New Issue
Block a user