diff options
Diffstat (limited to 'src/common/connection.py')
-rw-r--r-- | src/common/connection.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/common/connection.py b/src/common/connection.py index 4218f7c9a..ec2da038e 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -324,10 +324,7 @@ class Connection(ConnectionHandlers): errnum = -1 # we don't have an errnum ssl_msg = '' if errnum > 0: - if errnum in ssl_error: - ssl_msg = ssl_error[errnum] - else: - ssl_msg = _('Unknown SSL error: %d') % errnum + ssl_msg = ssl_error.get(errnum, _('Unknown SSL error: %d') % errnum) ssl_cert = '' if hasattr(self.connection.Connection, 'ssl_cert_pem'): ssl_cert = self.connection.Connection.ssl_cert_pem |