Skip to content

Commit f121c7f

Browse files
authored
Merge pull request #2746 from fractal-analytics-platform/2736-undefined-behavior-a-task-creates-a-new-image-with-originnone
add check for attributes before removing remove IMAGE_STATUS_KEY
2 parents 8db4fc2 + 318528d commit f121c7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fractal_server/app/runner/v2/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _remove_status_from_attributes(
4747
Drop attribute `IMAGE_STATUS_KEY` from all images.
4848
"""
4949
images_copy = deepcopy(images)
50-
[img["attributes"].pop(IMAGE_STATUS_KEY) for img in images_copy]
50+
[img["attributes"].pop(IMAGE_STATUS_KEY, None) for img in images_copy]
5151
return images_copy
5252

5353

0 commit comments

Comments
 (0)