浏览代码

fix reset of exception handlers

Falko Schindler 1 年之前
父节点
当前提交
b0be5522ba
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nicegui/app.py

+ 1 - 1
nicegui/app.py

@@ -240,4 +240,4 @@ class App(FastAPI):
         self._shutdown_handlers.clear()
         self._connect_handlers.clear()
         self._disconnect_handlers.clear()
-        self._exception_handlers.clear()
+        self._exception_handlers[:] = [log.exception]