Skip to content

Commit

Permalink
Fix crash when exceptions thrown by parse function
Browse files Browse the repository at this point in the history
  • Loading branch information
wtsnyder authored and patrickelectric committed Nov 26, 2024
1 parent df8c162 commit 20b343c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pingproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def run(self):
self.clients[address].parse(data)

except Exception as e:
if e.errno == errno.EAGAIN:
if hasattr(e, 'errno') and e.errno == errno.EAGAIN:
pass # waiting for data
else:
print("Error reading data", e)
Expand Down

0 comments on commit 20b343c

Please sign in to comment.