Skip to content

Commit

Permalink
Try changing this condition
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed May 6, 2024
1 parent abd8447 commit c4d06c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beets/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def syspath(path: AnyStr, prefix: bool = True) -> AnyStr:
if os.path.__name__ != "ntpath":
return path

if isinstance(path, bytes):
if not isinstance(path, str):
# Beets currently represents Windows paths internally with UTF-8
# arbitrarily. But earlier versions used MBCS because it is
# reported as the FS encoding by Windows. Try both.
Expand Down

0 comments on commit c4d06c7

Please sign in to comment.