1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00
2019-12-31 18:30:48 -07:00

18 lines
363 B
Python

"""hyperglass web app initiator."""
def start():
"""Start Sanic web server."""
try:
from hyperglass import hyperglass, APP_PARAMS
hyperglass.app.run(**APP_PARAMS)
except ImportError as import_err:
raise RuntimeError(str(import_err))
except Exception as web_err:
raise RuntimeError(str(web_err))
app = start()