Michel Roux
0bae69ef2f
All checks were successful
continuous-integration/drone/push Build is passing
13 lines
266 B
Python
13 lines
266 B
Python
from logging import getLogger
|
|
from time import sleep
|
|
|
|
from pynyaata.config import app, APP_PORT, IS_DEBUG
|
|
|
|
while True:
|
|
try:
|
|
app.run('0.0.0.0', APP_PORT, IS_DEBUG)
|
|
except Exception as e:
|
|
getLogger().exception(e)
|
|
sleep(10)
|
|
pass
|