From 63f62b41072363c7ede922566c0e138df28fc10f Mon Sep 17 00:00:00 2001 From: nex Date: Mon, 20 Mar 2023 18:01:44 +0000 Subject: [PATCH] fix... database? --- utils/db.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/db.py b/utils/db.py index 3012811..6e2e2bf 100644 --- a/utils/db.py +++ b/utils/db.py @@ -37,9 +37,11 @@ __all__ = [ T = TypeVar("T") T_co = TypeVar("T_co", covariant=True) -_pth = "main.db" if Path("/data").exists(): _pth = "/data/main.db" +else: + _pth = "/./main.db" + try: Path(_pth).touch() except PermissionError as e: