-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various updates inspired by recent issues #397
Conversation
…nown address fails
…try_limit and connection_retry_delay respectively) from the Device() constructor
Tests look clean. Updated docs and bump to v1.12.10. |
Thanks, @uzlonewolf ! 🙏 |
@@ -885,19 +929,23 @@ def _get_socket(self, renew): | |||
"socket unable to connect (timeout) - retry %d/%d", | |||
retries, self.socketRetryLimit | |||
) | |||
err = ERR_OFFLINE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how I missed this. This stepped on the exception local variable err
which it won't allow. Regardless, we shouldn't have had err
for the exception anyway since it is used within the function already. Renaming to e
.
See #402 - Thanks @simon-kuzin
Most of these are fairly minor, though "Scan for new IP address then auto-IP is used and connection to last-known address fails" and "Make connection/key errors more descriptive" are pretty big.