Skip to content

Commit

Permalink
Merge pull request #3307 from thaJeztah/deprecated_json_error
Browse files Browse the repository at this point in the history
image load: don't depend on deprecated JSONMessage.error field
  • Loading branch information
thompson-shaun authored Jan 17, 2025
2 parents 03e43be + 5a8a424 commit 747d23b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/models/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ def load(self, data):
if match:
image_id = match.group(2)
images.append(image_id)
if 'error' in chunk:
raise ImageLoadError(chunk['error'])
if 'errorDetail' in chunk:
raise ImageLoadError(chunk['errorDetail']['message'])

return [self.get(i) for i in images]

Expand Down

0 comments on commit 747d23b

Please sign in to comment.