Skip to content

Commit ab349c6

Browse files
authored
Merge pull request #134 from AdamCummick/correct-mac-error
Correct error raised by bytes MAC address
2 parents 69fbae3 + fbfa600 commit ab349c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_wiznet5k/adafruit_wiznet5k.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def mac_address(self, address: Union[MacAddressRaw, str]) -> None:
386386
"""
387387
try:
388388
address = [int(x, 16) for x in address.split(":")]
389-
except AttributeError:
389+
except TypeError:
390390
pass
391391
try:
392392
if len(address) != 6:

0 commit comments

Comments
 (0)