Ubuntu – How to suppress an exception output in python code that is using pyshark?
Running the following python 3.10.12 code on Ubuntu 22.04.4 using pyshark 0.6 seems to ignore the try-except statement of python: capture = pyshark.FileCapture(filename) try: for packet in capture: pass except: print("exception") Even I enclosed the reading loop in a try-except…