From 2c23e1151ccbc1910f2b9d1e29a48f21c15d7ec6 Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Fri, 22 Aug 2025 14:57:54 +0200 Subject: [PATCH] Remove unused var --- src/serena/project.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/serena/project.py b/src/serena/project.py index 54f24d9b..a58e037c 100644 --- a/src/serena/project.py +++ b/src/serena/project.py @@ -194,8 +194,12 @@ class Project: if not self.is_ignored_path(abs_file_path, ignore_non_source_files=True): try: rel_file_path = os.path.relpath(abs_file_path, start=self.project_root) - except Exception as e: - log.warning("Ignoring path '%s' because it appears to be outside of the project root (%s)", abs_file_path, self.project_root) + except Exception: + log.warning( + "Ignoring path '%s' because it appears to be outside of the project root (%s)", + abs_file_path, + self.project_root, + ) continue rel_file_paths.append(rel_file_path) except FileNotFoundError: