Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
dont use non existent files in checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
PCSwingle committed Nov 28, 2023
1 parent 441db81 commit e1885e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mentat/code_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ def _get_code_message_checksum(
if not self.features:
features_checksum = ""
else:
feature_files = {Path(git_root / f.path) for f in self.features}
feature_files = {
git_root / f.path for f in self.features if (git_root / f.path).exists()
}
feature_file_checksums = [
code_file_manager.get_file_checksum(f) for f in feature_files
]
Expand Down

0 comments on commit e1885e2

Please sign in to comment.