mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-27 21:22:39 +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:
|
||||
raise ValueError
|
||||
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)
|
||||
irc.replySuccess()
|
||||
except ValueError:
|
||||
|
Loading…
Reference in New Issue
Block a user