diff --git a/common/lib/dataset.py b/common/lib/dataset.py index f33687a06..56936f51c 100644 --- a/common/lib/dataset.py +++ b/common/lib/dataset.py @@ -1310,7 +1310,7 @@ def get_place_in_queue(self): :return int: Queue position """ - if self.is_finished() or not self.data["job"]: + if self.is_finished() or not self.data.get("job"): self.queue_position = -1 return else: