diff --git a/gnupg/gnupg.py b/gnupg/gnupg.py index 8416f95..84eec7d 100644 --- a/gnupg/gnupg.py +++ b/gnupg/gnupg.py @@ -535,7 +535,8 @@ class GPG(object): :param bool secret: If True, delete the corresponding secret key(s) also. (default: False) """ - which='key' + + which='keys' if secret: which='secret-key'