chiark
/
gitweb
/
~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d0d0a7
)
pwsafe: Report password mismatch as an error, not an exception.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 24 May 2015 15:46:39 +0000
(16:46 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 28 May 2015 10:21:01 +0000
(11:21 +0100)
pwsafe
patch
|
blob
|
blame
|
history
diff --git
a/pwsafe
b/pwsafe
index 4bdc83ef9ac0ef39f365ca155fdc66370af4cb1f..37ebffe7a0ddece8f63e92f1dad0678bf711cccd 100644
(file)
--- a/
pwsafe
+++ b/
pwsafe
@@
-105,7
+105,7
@@
def cmd_store(av):
if len(av) < 2:
pp = C.getpass("Enter passphrase `%s': " % tag)
vpp = C.getpass("Confirm passphrase `%s': " % tag)
- if pp != vpp:
raise ValueError, "passphrases don't match"
+ if pp != vpp:
die("passphrases don't match")
elif av[1] == '-':
pp = stdin.readline()
else: