Skip to content

Commit

Permalink
amy.py: Tolerate amy.send(time=None).
Browse files Browse the repository at this point in the history
  • Loading branch information
dpwe committed Sep 23, 2024
1 parent 678639f commit a77f092
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions amy.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,12 @@ def message(**kwargs):
m = ""
for key, arg in kwargs.items():
if arg is None:
raise ValueError
wire_code, type_code = kw_map[key]
m += wire_code + arg_handlers[type_code](arg)
if key != 'time':
raise ValueError('No arg for key ' + key)
# Just ignore time=None
else:
wire_code, type_code = kw_map[key]
m += wire_code + arg_handlers[type_code](arg)
#print("message:", m)
return m + 'Z'

Expand Down

0 comments on commit a77f092

Please sign in to comment.