Skip to content

Commit cb2833c

Browse files
fix: fix for pull request finding 'Empty except'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 00551e3 commit cb2833c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphgen/operators/read/parallel_file_scanner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ def _cache_result(self, key: str, result: Dict, path: Path):
194194
},
195195
)
196196
logger.info("[READ] Cached scan result for path: %s", path)
197-
except OSError:
198-
pass
197+
except OSError as e:
198+
logger.error("[READ] Failed to cache scan result for path %s: %s", path, e)
199199

200200
def _is_allowed_file(self, path: Path) -> bool:
201201
"""Check if the file has an allowed suffix"""

0 commit comments

Comments
 (0)