From: Mark Wooding Date: Sun, 24 May 2015 15:46:39 +0000 (+0100) Subject: pwsafe: Report password mismatch as an error, not an exception. X-Git-Tag: 1.1.0~16 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/commitdiff_plain/e988cbf226c44faa7b57b02583a814a08f0e8c9c?ds=sidebyside pwsafe: Report password mismatch as an error, not an exception. --- diff --git a/pwsafe b/pwsafe index 4bdc83e..37ebffe 100644 --- 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: