Skip to content

Commit

Permalink
Fix free import
Browse files Browse the repository at this point in the history
  • Loading branch information
cderici committed Jan 23, 2024
1 parent b9f6089 commit 838be65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions juju/client/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import copy
import logging

from packaging import version, InvalidVersion
from packaging import version

import macaroonbakery.httpbakery as httpbakery

Expand Down Expand Up @@ -91,7 +91,7 @@ async def connect(self, **kwargs):
server_version = self._connection.info["server-version"]
try:
juju_server_version = version.parse(server_version)
except InvalidVersion as err:
except version.InvalidVersion as err:
# We're only interested in the major version, so
# we attempt to clean up versions such as 3.4-rc1.2 as just 3.4
if '-' not in server_version:
Expand Down

0 comments on commit 838be65

Please sign in to comment.