]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
The QUIC sync worker thread should not spew backtraces due to not catching exceptions.
authorBob Halley <halley@dnspython.org>
Sun, 17 Nov 2024 01:42:54 +0000 (17:42 -0800)
committerBob Halley <halley@dnspython.org>
Sun, 17 Nov 2024 01:42:54 +0000 (17:42 -0800)
dns/quic/_sync.py

index 7115984540330be4bc43f96657c728f69834b3c6..d6e41282befbe670b5eb36a3e35e60434ab27699 100644 (file)
@@ -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