kalong 0.5.5__py3-none-any.whl → 0.5.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kalong/__init__.py +1 -1
- kalong/server.py +4 -1
- kalong/static/assets/{index-ByEA1zci.js → index-HYT-RbHf.js} +25 -25
- kalong/static/index.html +1 -1
- kalong/websockets.py +1 -1
- {kalong-0.5.5.dist-info → kalong-0.5.7.dist-info}/METADATA +1 -1
- {kalong-0.5.5.dist-info → kalong-0.5.7.dist-info}/RECORD +10 -10
- {kalong-0.5.5.dist-info → kalong-0.5.7.dist-info}/WHEEL +0 -0
- {kalong-0.5.5.dist-info → kalong-0.5.7.dist-info}/entry_points.txt +0 -0
- {kalong-0.5.5.dist-info → kalong-0.5.7.dist-info}/licenses/LICENSE +0 -0
kalong/__init__.py
CHANGED
kalong/server.py
CHANGED
|
@@ -141,6 +141,9 @@ def serve():
|
|
|
141
141
|
app.on_shutdown.append(shutdown)
|
|
142
142
|
app.router.add_get(r"/{side:(front|back)}/{origin}", websocket)
|
|
143
143
|
app.router.add_static("/assets/", Path(__file__).parent / "static" / "assets")
|
|
144
|
-
|
|
144
|
+
try:
|
|
145
|
+
loop = asyncio.get_event_loop()
|
|
146
|
+
except RuntimeError:
|
|
147
|
+
loop = asyncio.new_event_loop()
|
|
145
148
|
loop.set_exception_handler(exception_handler)
|
|
146
149
|
web.run_app(app, host=config.host, port=config.port, print=False, loop=loop)
|