Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/connection.py')
-rw-r--r--src/common/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/connection.py b/src/common/connection.py
index ec2da038e..c3d2d0e61 100644
--- a/src/common/connection.py
+++ b/src/common/connection.py
@@ -1093,7 +1093,7 @@ class Connection(ConnectionHandlers):
if keyID and self.USE_GPG:
if keyID == 'UNKNOWN':
error = _('Neither the remote presence is signed, nor a key was assigned.')
- elif keyID[8:] == 'MISMATCH':
+ elif keyID.endswith('MISMATCH'):
error = _('The contact\'s key (%s) does not match the key assigned in Gajim.' % keyID[:8])
else:
#encrypt