Skip to content

Commit 529b243

Browse files
committed
improved error handling for get_vid_bytes
1 parent f880919 commit 529b243

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

generate_mac/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def get_vid_bytes(mac_address):
248248
'''Return vendor bytes from a given MAC address as a string'''
249249
# check if this is a valid mac address
250250
if generate_mac.is_mac_address(mac_address) != True:
251-
raise ValueError(mac_address + ' is not a valid MAC address')
251+
raise ValueError(str(mac_address) + ' is not a valid MAC address')
252252

253253
output = ""
254254
# Grab the first three bytes, this is the VID

0 commit comments

Comments
 (0)