Skip to content

Commit bb36ad5

Browse files
committed
chess: dont force str paths
1 parent 240c10c commit bb36ad5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

my/chess/export.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ def _parse_export_file(p: Path) -> Results:
4949
# typically this raises a KeyError since the JSON didn't match
5050
# what the NamedTuple expects
5151
try:
52-
yield from lmodel.from_export(str(p))
52+
yield from lmodel.from_export(p)
5353
except Exception:
54-
yield from cmodel.from_export(str(p))
54+
yield from cmodel.from_export(p)
5555

5656

5757
@mcachew(depends_on=_cachew_depends_on, logger=logger)

0 commit comments

Comments
 (0)