diff --git a/devtools/parse_pcap_klap.py b/devtools/parse_pcap_klap.py index b2cdc938..b291b0d4 100755 --- a/devtools/parse_pcap_klap.py +++ b/devtools/parse_pcap_klap.py @@ -272,6 +272,7 @@ def main( case "/app/request": if packet.ip.dst != device_ip: continue + assert isinstance(data, str) # noqa: S101 message = bytes.fromhex(data) try: plaintext = operator.decrypt(message) @@ -284,6 +285,7 @@ def main( case "/app/handshake1": if packet.ip.dst != device_ip: continue + assert isinstance(data, str) # noqa: S101 message = bytes.fromhex(data) operator.local_seed = message response = None