summaryrefslogtreecommitdiff
path: root/obnamlib/encryption.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-08-15 18:33:48 +0100
committerLars Wirzenius <liw@liw.fi>2013-08-15 18:33:48 +0100
commit591d01ba585ef1de989ba0b1aa66383ad5e3202f (patch)
treef8360b4382904181f4121d432807d8f024d5a78a /obnamlib/encryption.py
parenta10967e1b810b19096268433ce908cfd83972ee8 (diff)
downloadobnam-591d01ba585ef1de989ba0b1aa66383ad5e3202f.tar.gz
Fix list-toplevels so it doesn't mind other clients
Fix by Lars Kruse.
Diffstat (limited to 'obnamlib/encryption.py')
-rw-r--r--obnamlib/encryption.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/obnamlib/encryption.py b/obnamlib/encryption.py
index d4a75f8d..3381c61f 100644
--- a/obnamlib/encryption.py
+++ b/obnamlib/encryption.py
@@ -93,7 +93,7 @@ def _gpg_pipe(args, data, passphrase):
# Return output data, or deal with errors.
if p.returncode: # pragma: no cover
- raise obnamlib.Error(err)
+ raise obnamlib.EncryptionError(err)
return out
@@ -125,7 +125,7 @@ def _gpg(args, stdin='', gpghome=None):
# Return output data, or deal with errors.
if p.returncode: # pragma: no cover
- raise obnamlib.Error(err)
+ raise obnamlib.EncryptionError(err)
return out