Skip to content

Commit 68ee366

Browse files
committed
Fix issue in error message check
1 parent b2da6f4 commit 68ee366

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandevice/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3193,8 +3193,7 @@ def classify_exception(self, e):
31933193
# This could be that we have an old version of OpenSSL
31943194
# that doesn't support TLSv1.1, so check for that and give
31953195
# a more explicit error if so.
3196-
suspect_error = 'URLError: reason: [Errno 54] Connection reset by peer'
3197-
if e.message == suspect_error:
3196+
if str(e) == 'URLError: reason: [Errno 54] Connection reset by peer':
31983197
min_openssl_version = ['1', '0', '1']
31993198
help_url = 'http://pandevice.readthedocs.io/en/latest/usage.html#connecting-to-pan-os-8-0'
32003199
try:

0 commit comments

Comments
 (0)