Add exception handling

This commit is contained in:
Alexander Neff
2023-12-04 16:15:27 +01:00
parent da603def02
commit 796e49e86b
+4 -1
View File
@@ -155,7 +155,10 @@ class FirefoxTriage:
return b""
db.close()
fh.close()
os.remove(fh.name)
try:
os.remove(fh.name)
except Exception as e:
self.logger.error(f"Error removing temporary file: {e}")
def is_master_password_correct(self, key_data, master_password=b""):
try: