check none

This commit is contained in:
Antonio J. Delgado 2023-01-25 16:30:01 +02:00
parent 2fe20b4605
commit 145f8d96c8

View file

@ -55,7 +55,7 @@ class find_duplicate_files:
def _check_file_cache(self, file):
result = self.cur.execute(f"SELECT hash FROM files WHERE file = '{file}'")
row = result.fetchone()
if len(row) > 0:
if row and len(row) > 0:
return row[0]
else:
return False