Skip to content

Commit

Permalink
fixed json import
Browse files Browse the repository at this point in the history
  • Loading branch information
kolinger committed Feb 16, 2024
1 parent 82e9094 commit 93961a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mc3000usb.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def from_json(self, payload):
setattr(self, name, value)

for name, value in self.get_fields().items():
if value is None and name in ["id"]:
if value is None and name not in ["id"]:
raise JsonException("field '%s' is missing" % name)

try:
Expand Down

0 comments on commit 93961a4

Please sign in to comment.