Report failure without hints.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
This commit is contained in:
parent
a119945ccf
commit
365bb2002c
2
buku
2
buku
@ -673,7 +673,7 @@ def decrypt_file():
|
|||||||
dbhash = get_filehash(dbpath)
|
dbhash = get_filehash(dbpath)
|
||||||
if dbhash != enchash:
|
if dbhash != enchash:
|
||||||
os.remove(dbpath)
|
os.remove(dbpath)
|
||||||
print("Wrong password")
|
print("Decryption failed");
|
||||||
else:
|
else:
|
||||||
os.remove(encpath)
|
os.remove(encpath)
|
||||||
print("File decrypted")
|
print("File decrypted")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user