Skip to content

Commit

Permalink
fix conflict of ConnectionError
Browse files Browse the repository at this point in the history
  • Loading branch information
tillsteinbach committed Jan 12, 2022
1 parent 8d3589a commit 41351d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weconnect_mqtt/weconnect_mqtt_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from PIL import Image
import ascii_magic

from requests.exceptions import ConnectionError
from requests import exceptions

from weconnect import weconnect, addressable, errors, util, domain
from weconnect.__version import __version__ as __weconnect_version__
Expand Down Expand Up @@ -221,7 +221,7 @@ def main(): # noqa: C901 # pylint: disable=too-many-branches,too-many-statemen
try:
mqttCLient.connectWeConnect(username=username, password=password, maxAgePictures=args.pictureCache)
break
except ConnectionError as e:
except exceptions.ConnectionError as e:
LOG.error('Could not connect to VW-Server: %s, will retry in 10 seconds', e)
time.sleep(10)

Expand Down

0 comments on commit 41351d9

Please sign in to comment.