We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2da6f4 commit 68ee366Copy full SHA for 68ee366
pandevice/base.py
@@ -3193,8 +3193,7 @@ def classify_exception(self, e):
3193
# This could be that we have an old version of OpenSSL
3194
# that doesn't support TLSv1.1, so check for that and give
3195
# a more explicit error if so.
3196
- suspect_error = 'URLError: reason: [Errno 54] Connection reset by peer'
3197
- if e.message == suspect_error:
+ if str(e) == 'URLError: reason: [Errno 54] Connection reset by peer':
3198
min_openssl_version = ['1', '0', '1']
3199
help_url = 'http://pandevice.readthedocs.io/en/latest/usage.html#connecting-to-pan-os-8-0'
3200
try:
0 commit comments