Skip to content

Commit

Permalink
Change raise of exception which does not exist
Browse files Browse the repository at this point in the history
This changes a use of ``DockerError`` (which does not exist) to ``DockerException``.
  • Loading branch information
adamtheturtle committed Feb 2, 2024
1 parent bd164f9 commit d20c1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/models/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def upgrade(self, remote=None):
A generator streaming the decoded API logs
"""
if self.enabled:
raise errors.DockerError(
raise errors.DockerException(
'Plugin must be disabled before upgrading.'
)

Expand Down

0 comments on commit d20c1cf

Please sign in to comment.