check bytes

This commit is contained in:
alicezou 2022-03-27 23:05:23 -04:00
parent c0d05f8545
commit 9029a8a6b3

View file

@ -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):