mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 03:22:39 +01:00
check bytes
This commit is contained in:
parent
c0d05f8545
commit
9029a8a6b3
1 changed files with 1 additions and 1 deletions
|
|
@ -903,7 +903,7 @@ class Database:
|
|||
|
||||
# Check whether parental directories exist.
|
||||
def _path_checker(self, path):
|
||||
if path == ":memory:": # For testing
|
||||
if not isinstance(path, bytes) and path == ':memory:': # in memory db
|
||||
return
|
||||
newpath = os.path.dirname(path)
|
||||
if not os.path.isdir(newpath):
|
||||
|
|
|
|||
Loading…
Reference in a new issue