diff --git a/trace.py b/trace.py index 02ae13b6..24ee7a39 100644 --- a/trace.py +++ b/trace.py @@ -113,6 +113,9 @@ def _get_packets(self, f: str) -> List: # See https://github.com/KimiNewt/pyshark/issues/390. try: for p in cap: + if "quic" not in p: + logging.info("Captured packet without quic layer: %r", p) + continue packets.append(p) cap.close() except Exception as e: