fix athena calls that do not use params

pull/20482/head
Greg Hogan 4 years ago
parent 806226820c
commit b88ca985d6
  1. 2
      selfdrive/athena/athenad.py

@ -77,7 +77,7 @@ def jsonrpc_handler(end_event):
while not end_event.is_set(): while not end_event.is_set():
try: try:
data = recv_queue.get(timeout=1) data = recv_queue.get(timeout=1)
if "method" in data and "params" in data: if "method" in data:
response = JSONRPCResponseManager.handle(data, dispatcher) response = JSONRPCResponseManager.handle(data, dispatcher)
send_queue.put_nowait(response.json) send_queue.put_nowait(response.json)
elif "result" in data and "id" in data: elif "result" in data and "id" in data:

Loading…
Cancel
Save