Update decrypt-db.py (#87)

Add error output for try block of do_decrypt
This commit is contained in:
Sea
2021-08-29 12:51:11 -07:00
committed by GitHub
parent d0ec0886c0
commit d4b8cf3530
+2 -1
View File
@@ -181,7 +181,8 @@ if __name__ == "__main__":
logger.info(f"Trying key {key} ...")
try:
do_decrypt(args.input, output_file, key)
except:
except Exception as error:
logger.warning(f"An unexpected error occurred.{error}")
pass
else:
logger.info(f"Database dumped to {output_file}")