diff --git a/camdetect.py b/camdetect.py index d2eae85..0b09d87 100755 --- a/camdetect.py +++ b/camdetect.py @@ -551,9 +551,6 @@ async def setup_db(app, loop): monitor(app).expose_endpoint() -try: - app.run(host="0.0.0.0", - port=5000, - debug=bool(os.getenv("DEBUG", 0))) -except KeyboardInterrupt: - asyncio.get_event_loop().close() +app.run(host="0.0.0.0", + port=5000, + debug=bool(os.getenv("DEBUG", 0)))