a is None is faster than a == None IIRC [it is for sure nicer :$]
This commit is contained in:
parent
f6892ea4f4
commit
4e31156bbd
|
@ -851,7 +851,7 @@ class Connection:
|
||||||
signed = ''
|
signed = ''
|
||||||
keyID = gajim.config.get_per('accounts', self.name, 'keyid')
|
keyID = gajim.config.get_per('accounts', self.name, 'keyid')
|
||||||
if keyID and USE_GPG:
|
if keyID and USE_GPG:
|
||||||
if self.connected < 2 and self.gpg.passphrase == None:
|
if self.connected < 2 and self.gpg.passphrase is None:
|
||||||
# We didn't set a passphrase
|
# We didn't set a passphrase
|
||||||
self.dispatch('ERROR', (_('OpenPGP Key was not given'),
|
self.dispatch('ERROR', (_('OpenPGP Key was not given'),
|
||||||
_('You will be connected to %s without OpenPGP.') % self.name))
|
_('You will be connected to %s without OpenPGP.') % self.name))
|
||||||
|
|
Loading…
Reference in New Issue