Skip to content

Commit

Permalink
Fix local var collision #402
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Sep 1, 2023
1 parent 64713c1 commit f046c72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tinytuya/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
# Colorama terminal color capability for all platforms
init()

version_tuple = (1, 12, 10)
version_tuple = (1, 12, 11)
version = __version__ = "%d.%d.%d" % version_tuple
__author__ = "jasonacox"

Expand Down Expand Up @@ -923,14 +923,14 @@ def _get_socket(self, renew):
return ERR_KEY_OR_VER
else:
return True
except socket.timeout as err:
except socket.timeout as e:
# unable to open socket
log.debug(
"socket unable to connect (timeout) - retry %d/%d",
retries, self.socketRetryLimit
)
err = ERR_OFFLINE
except Exception as err:
except Exception as e:
# unable to open socket
log.debug(
"socket unable to connect (exception) - retry %d/%d",
Expand Down

0 comments on commit f046c72

Please sign in to comment.