diff --git a/find_duplicate_files/find_duplicate_files.py b/find_duplicate_files/find_duplicate_files.py index 9ab8b6a..8507c40 100644 --- a/find_duplicate_files/find_duplicate_files.py +++ b/find_duplicate_files/find_duplicate_files.py @@ -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