Parcourir la source

fix reset of exception handlers

Falko Schindler il y a 1 an
Parent
commit
b0be5522ba
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      nicegui/app.py

+ 1 - 1
nicegui/app.py

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