I am running live capture with pyshark module:
filtered_cap = pyshark.LiveCapture(display_filter='TCPP', only_summaries=True) packet_iter = filtered_cap.sniff_continuously() for pkt in packet_iter: print(pkt)
The
display filter
argument is incorrect e.g.'TCPP'
- When running this code I have got exception that I cannot catch.
Exception ignored in: <function Capture.____del____ at ...>
...
pyshark.capture.capture.TSharkCrashException: TShark seems to have crashed (retcode: 2)
Any suggestion how to solve it?