mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
User: Fix @gpg remove with some gpg configs.
This commit is contained in:
parent
06b865597f
commit
e6d80f9346
@ -454,7 +454,10 @@ class User(callbacks.Plugin):
|
|||||||
if len(keyids) == 0:
|
if len(keyids) == 0:
|
||||||
raise ValueError
|
raise ValueError
|
||||||
for keyid in keyids:
|
for keyid in keyids:
|
||||||
user.gpgkeys.remove(keyid)
|
try:
|
||||||
|
user.gpgkeys.remove(keyid)
|
||||||
|
except ValueError:
|
||||||
|
user.gpgkeys.remove('0x' + keyid)
|
||||||
gpg.keyring.delete_keys(fingerprint)
|
gpg.keyring.delete_keys(fingerprint)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
Loading…
Reference in New Issue
Block a user