~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61cc966
)
pwsafe: Don't produce a backtrace on decryption failure.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 24 May 2015 09:53:27 +0000
(10:53 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 24 May 2015 18:42:15 +0000
(19:42 +0100)
pwsafe
patch
|
blob
|
blame
|
history
diff --git
a/pwsafe
b/pwsafe
index
91684c7
..
043db43
100644
(file)
--- a/
pwsafe
+++ b/
pwsafe
@@
-276,8
+276,11
@@
if argv[0] in commands:
argv = argv[1:]
else:
c = 'find'
-if commands[c][0](argv):
- print >>stderr, 'Usage: %s %s %s' % (prog, c, commands[c][1])
- exit(1)
+try:
+ if commands[c][0](argv):
+ print >>stderr, 'Usage: %s %s %s' % (prog, c, commands[c][1])
+ exit(1)
+except DecryptError:
+ die("decryption failure")
###----- That's all, folks --------------------------------------------------