Explorar o código

maybe the duplicated exception info is the problem?

Rodja Trappe %!s(int64=2) %!d(string=hai) anos
pai
achega
a4200121f5
Modificáronse 2 ficheiros con 0 adicións e 2 borrados
  1. 0 1
      nicegui/nicegui.py
  2. 0 1
      tests/test_page.py

+ 0 - 1
nicegui/nicegui.py

@@ -73,7 +73,6 @@ async def exception_handler(request: Request, exception: Exception):
 
 @app.exception_handler(Exception)
 async def exception_handler(request: Request, exception: Exception):
-    globals.log.exception(f'unexpected exception for {request.url}', exc_info=exception)
     with Client(page('')) as client:
         error_content(500, exception)
     return client.build_response(request, 500)

+ 0 - 1
tests/test_page.py

@@ -133,7 +133,6 @@ def test_adding_elements_after_handshake(screen: Screen):
     screen.should_contain('after')
 
 
-@pytest.mark.skip(reason='maybe this causes the timeout on GitHub?')
 def test_exception(screen: Screen):
     @ui.page('/')
     def page():