mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-02-21 16:44:21 +01:00
cashu pypi
This commit is contained in:
11
core/db.py
11
core/db.py
@@ -128,10 +128,13 @@ class Database(Compat):
|
||||
database_uri = f"sqlite:///{self.path}"
|
||||
self.type = SQLITE
|
||||
else:
|
||||
raise NotADirectoryError(
|
||||
f"db_location named {self.db_location} was not created"
|
||||
f" - please 'mkdir {self.db_location}' and try again"
|
||||
)
|
||||
print(f"Creating database directory: {self.db_location}")
|
||||
if not os.path.exists(self.db_location):
|
||||
os.makedirs(self.db_location)
|
||||
# raise NotADirectoryError(
|
||||
# f"db_location named {self.db_location} was not created"
|
||||
# f" - please 'mkdir {self.db_location}' and try again"
|
||||
# )
|
||||
self.schema = self.name
|
||||
if self.name.startswith("ext_"):
|
||||
self.schema = self.name[4:]
|
||||
|
||||
Reference in New Issue
Block a user