Suppress any exceptions on web stop

pull/1/head
hikariatama 2022-06-12 15:25:10 +00:00
parent 7e5b9ad58d
commit 212a1a3f59
1 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,7 @@
import asyncio
import atexit
import contextlib
import logging
import os
import signal
@ -192,7 +193,8 @@ class UpdaterMod(loader.Module):
app.restart()
return
await main.hikka.web.stop()
with contextlib.suppress(Exception):
await main.hikka.web.stop()
atexit.register(restart, *sys.argv[1:])
handler = logging.getLogger().handlers[0]