From 939db0bf01035ae269d4160885d27e002c19adac Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sat, 16 Nov 2024 17:42:54 -0800 Subject: [PATCH] The QUIC sync worker thread should not spew backtraces due to not catching exceptions. --- dns/quic/_sync.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.3