Skip to content

Commit 36a19ae

Browse files
committed
fix(bof): Handle ValueError raised when using function raw in Scapy 2.4.5
1 parent c7fcc1d commit 36a19ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bof/packet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def _any2i(self, parent, field, new_value) -> bool:
407407
self._setattr(parent, field, new_value)
408408
raw(parent)
409409
return True
410-
except struct_error:
410+
except (ValueError, struct_error):
411411
pass # Any other exception is unexpected and we let it happen
412412
return False
413413

0 commit comments

Comments
 (0)