From 9029a8a6b39cc5ad6746cd8840ddaefe9bffd020 Mon Sep 17 00:00:00 2001 From: alicezou Date: Sun, 27 Mar 2022 23:05:23 -0400 Subject: [PATCH] check bytes --- beets/dbcore/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/dbcore/db.py b/beets/dbcore/db.py index 243308c0d..397dbcedf 100755 --- a/beets/dbcore/db.py +++ b/beets/dbcore/db.py @@ -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):