Skip to content

Commit

Permalink
ignore non .py files in versions dir
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonjoyce committed Jan 14, 2025
1 parent 26f3468 commit 4aa7bf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion liminal/migrate/revisions_timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ def __init__(self, versions_dir_path: Path):
)
all_raw_revisions: list[Revision] = []
for file_path in versions_dir_path.iterdir():
all_raw_revisions.append(Revision.parse_from_file(file_path))
if file_path.is_file() and file_path.suffix == ".py":
all_raw_revisions.append(Revision.parse_from_file(file_path))
self.revisions_map = self.validate_revisions(all_raw_revisions)

def get_first_revision(self) -> Revision:
Expand Down

0 comments on commit 4aa7bf9

Please sign in to comment.