Make GPG key import errors more verbose

This commit is contained in:
Roberto Rosario
2012-01-25 02:17:17 -04:00
parent e7a2aed6a0
commit 4fe7803ff1
2 changed files with 10 additions and 3 deletions

View File

@@ -341,4 +341,4 @@ class GPG(object):
if import_result:
return Key.get(self, import_result.fingerprints[0], secret=False)
raise KeyImportError
raise KeyImportError(import_result.results[0].get('text', 'Unknown error'))