Skip to content

Commit

Permalink
Convert data to bytes when dumping packets
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Apr 12, 2024
1 parent 3bdadf0 commit b521eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bellows/cli/dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def cb(frame_name, response):
hdr = pure_pcapy.Pkthdr(ts_sec, ts_usec, len(data), len(data))

try:
pcap.dump(hdr, data)
pcap.dump(hdr, bytes(data))
except BrokenPipeError:
done_event.set()

Expand Down

0 comments on commit b521eec

Please sign in to comment.