Skip to content

Commit 4e9fb76

Browse files
Potential 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 0a9eb2c commit 4e9fb76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graphgen/models/storage/rocksdb_cache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def delete(self, key: str):
2121
try:
2222
del self.db[key]
2323
except KeyError:
24+
# If the key does not exist, do nothing (deletion is idempotent for caches)
2425
pass
2526

2627
def close(self):

0 commit comments

Comments
 (0)