From 145f8d96c8f8a8c613f9e6cd5c34c091ec6bd783 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Wed, 25 Jan 2023 16:30:01 +0200 Subject: [PATCH] check none --- find_duplicate_files/find_duplicate_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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