Commit 88464953 authored by Štěpán Balážik's avatar Štěpán Balážik

fix ICMP packet checker

parent 4138d0ac
Pipeline #43897 passed with stage
in 1 minute and 27 seconds
...@@ -351,7 +351,7 @@ def check_for_icmp(): ...@@ -351,7 +351,7 @@ def check_for_icmp():
udp_seen = True udp_seen = True
if udp_seen: if udp_seen:
if isinstance(ip.data, dpkt.icmp.ICMP, dpkt.icmp6.ICMP6): if isinstance(ip.data, (dpkt.icmp.ICMP, dpkt.icmp6.ICMP6)):
raise DeckardUnderLoadError("Deckard is under load. " raise DeckardUnderLoadError("Deckard is under load. "
"Other errors might be false negatives. " "Other errors might be false negatives. "
"Consider retrying the job later.") "Consider retrying the job later.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment