From: Bob Halley Date: Sun, 17 Nov 2024 01:42:54 +0000 (-0800) Subject: The QUIC sync worker thread should not spew backtraces due to not catching exceptions. X-Git-Tag: v2.8.0rc1~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=939db0bf01035ae269d4160885d27e002c19adac;p=thirdparty%2Fdnspython.git The QUIC sync worker thread should not spew backtraces due to not catching exceptions. --- diff --git a/dns/quic/_sync.py b/dns/quic/_sync.py index 71159845..d6e41282 100644 --- a/dns/quic/_sync.py +++ b/dns/quic/_sync.py @@ -152,6 +152,10 @@ class SyncQuicConnection(BaseQuicConnection): except BlockingIOError: # we let QUIC handle any lossage pass + except Exception: + # Eat all exceptions as we have no way to pass them back to the + # caller currently. It might be nice to fix this in the future. + pass finally: with self._lock: self._done = True