Skip to content

Commit 1347bbe

Browse files
committed
pylint noticed a real problem, for once
1 parent 58cd9e6 commit 1347bbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_bluefruit_connect/packet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def from_bytes(cls, packet):
7575
raise ValueError("Packet too short")
7676
packet_class = cls._type_to_class.get(packet[0:2], None)
7777
if not packet_class:
78-
raise ValueError("Unregistered packet type {}".format(header))
78+
raise ValueError("Unregistered packet type {}".format(packet[0:2]))
7979

8080
# In case this was called from a subclass, make sure the parsed
8181
# type matches up with the current class.
@@ -117,7 +117,7 @@ def from_stream(cls, stream):
117117
# Timeout: nothing more read.
118118
return None
119119
else:
120-
break;
120+
break
121121
# Didn't find a packet start. Loop and try again.
122122

123123
header = start + packet_type

0 commit comments

Comments
 (0)