Commit 05526ccb authored by ynerant's avatar ynerant
Browse files

Merge branch 'dev' into 'main'

Dont fetch the status of a deleted job

See merge request !12
parents cfb0c0f9 3f320af0
Pipeline #11182 passed with stages
in 1 minute and 39 seconds
......@@ -435,7 +435,13 @@ class PrintableFile(models.Model):
# Task is already completed, don't query the state
self.status = PrintableFile.JobState(self.job_attributes['job-state']).name
attributes = self.job_attributes
if 'job-state' not in attributes:
# Unknown job, maybe deleted
self.status = PrintableFile.JobState(attributes['job-state']).name
def __str__(self):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment