Skip to content

Commit

Permalink
Minor update for #19242
Browse files Browse the repository at this point in the history
  • Loading branch information
stamparm committed Feb 8, 2024
1 parent 4590e1e commit 422e5a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,11 @@ def _(_cap):
break
except (pcapy.PcapError, socket.timeout):
pass
except SystemError as ex:
if "PY_SSIZE_T_CLEAN" in str(ex):
sys.exit("[!] seems that you are not using pcapy-ng (https://pypi.org/project/pcapy-ng/)")
else:
raise

if not success:
time.sleep(REGULAR_SENSOR_SLEEP_TIME)
Expand Down

0 comments on commit 422e5a8

Please sign in to comment.