Skip to content

Commit

Permalink
Apparently sometimes klippy status_update won't have the 'result' key…
Browse files Browse the repository at this point in the history
…. Log it for now so that we have more info about what the payload looks like
  • Loading branch information
kennethjiang committed Sep 23, 2024
1 parent d8d44d2 commit 11d93b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion moonraker_obico/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ def _on_moonrakerconn_event(self, event):

elif event.name == 'status_update':
# full state update from moonraker
self._received_klippy_update(event.data['result'])
if 'result' in event.data:
self._received_klippy_update(event.data['result'])
else:
_logger.warning(f'Missing "result" in event data: {event.data}')

def set_current_print(self, printer_state):

Expand Down

0 comments on commit 11d93b6

Please sign in to comment.