summaryrefslogtreecommitdiff
path: root/obnamlib/encryption.py
diff options
context:
space:
mode:
Diffstat (limited to 'obnamlib/encryption.py')
-rw-r--r--obnamlib/encryption.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/obnamlib/encryption.py b/obnamlib/encryption.py
index 0104c11c..8eb2896a 100644
--- a/obnamlib/encryption.py
+++ b/obnamlib/encryption.py
@@ -94,7 +94,7 @@ def _gpg_pipe(args, data, passphrase, gpghome=None):
try:
out = _gpg(args + ['--passphrase-fd', str(keypipe[0])], stdin=data,
gpghome=gpghome)
- except: # pragma: no cover
+ except BaseException: # pragma: no cover
os.close(keypipe[0])
raise