mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-02-01 14:59:23 +00:00
17 lines
363 B
Python
17 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()
|