diff --git a/tsd_moonraker/app.py b/tsd_moonraker/app.py index 11a4ca0..9fdcc8b 100644 --- a/tsd_moonraker/app.py +++ b/tsd_moonraker/app.py @@ -208,7 +208,7 @@ def wait_for_sub_id(event): def _received_last_job(self, event): if 'jobs' in event.data.get('result', {}): - jobs = event.data.get('result', {}).get('jobs', [None]) + jobs = event.data.get('result', {}).get('jobs', [None]) or [None] self.on_event( Event(sender=self.id, name='last_job', data=jobs[0]) )