Skip to content

Commit

Permalink
fix(stubs): ensure src path is path type in log.
Browse files Browse the repository at this point in the history
Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
  • Loading branch information
BradenM committed Dec 12, 2022
1 parent 6ce154f commit 881a6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion micropy/stubs/stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _load(self, stub_source, strict=True, **kwargs):
try:
stub_type = self._get_stubtype(src_path)
except Exception as e:
self.log.debug(f"{src_path.name} failed to validate: {e}")
self.log.debug(f"{Path(src_path).name} failed to validate: {e}")
if strict:
raise e
else:
Expand Down

0 comments on commit 881a6a6

Please sign in to comment.