1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

18 lines
363 B
Python
Raw Normal View History

2019-12-31 18:30:48 -07:00
"""hyperglass web app initiator."""
def start():
2019-12-31 18:30:48 -07:00
"""Start Sanic web server."""
try:
2019-12-31 18:30:48 -07:00
from hyperglass import hyperglass, APP_PARAMS
hyperglass.app.run(**APP_PARAMS)
2019-12-31 18:30:48 -07:00
except ImportError as import_err:
raise RuntimeError(str(import_err))
except Exception as web_err:
raise RuntimeError(str(web_err))
app = start()