Skip to content

Commit

Permalink
chess: dont force str paths
Browse files Browse the repository at this point in the history
  • Loading branch information
purarue committed Nov 13, 2024
1 parent 240c10c commit bb36ad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions my/chess/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ def _parse_export_file(p: Path) -> Results:
# typically this raises a KeyError since the JSON didn't match
# what the NamedTuple expects
try:
yield from lmodel.from_export(str(p))
yield from lmodel.from_export(p)
except Exception:
yield from cmodel.from_export(str(p))
yield from cmodel.from_export(p)


@mcachew(depends_on=_cachew_depends_on, logger=logger)
Expand Down

0 comments on commit bb36ad5

Please sign in to comment.