Skip to content

Commit

Permalink
Provisionally fix sqlite issue (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcompa committed May 2, 2023
1 parent cd33f87 commit d366117
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fractal_server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ def DATABASE_URL(self) -> URL:
if self.DB_ENGINE == "sqlite":
if not self.SQLITE_PATH:
raise ValueError("SQLITE_PATH path cannot be None")
sqlite_path = abspath(self.SQLITE_PATH)
sqlite_path = (
abspath(self.SQLITE_PATH)
if self.SQLITE_PATH
else self.SQLITE_PATH
)
url = URL.create(
drivername="sqlite+aiosqlite",
database=sqlite_path,
Expand Down

0 comments on commit d366117

Please sign in to comment.