fix error msg
This commit is contained in:
parent
678566ccc2
commit
da0ca3b9e5
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ class find_duplicate_files:
|
|||
try:
|
||||
result = self.cur.execute(query)
|
||||
except Exception as error:
|
||||
self._log.error("Error executing query '{query}'. {error}")
|
||||
self._log.error(f"Error executing query '{query}'. {error}")
|
||||
sys.exit(2)
|
||||
row = result.fetchone()
|
||||
if row and len(row) > 0:
|
||||
|
@ -78,7 +78,7 @@ class find_duplicate_files:
|
|||
try:
|
||||
result = self.cur.execute(query)
|
||||
except Exception as error:
|
||||
self._log.error("Error executing query '{query}'. {error}")
|
||||
self._log.error(f"Error executing query '{query}'. {error}")
|
||||
sys.exit(3)
|
||||
self.cache_db.commit()
|
||||
return result
|
||||
|
|
Loading…
Reference in a new issue