Skip to content

Commit

Permalink
0 is an allowed id
Browse files Browse the repository at this point in the history
  • Loading branch information
Bairdo committed Apr 2, 2019
1 parent c9b8ff5 commit 415375e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chewie/message_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, src_mac, message_id):

def __str__(self):
_id = self.message_id
if not _id:
if _id is None:
_id = -1
return "'%s': src_mac: '%s', id: '%d'" % (self.__class__.__name__, self.src_mac, _id)

Expand Down

0 comments on commit 415375e

Please sign in to comment.