mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
fix... database?
This commit is contained in:
parent
dcbf7f895e
commit
63f62b4107
1 changed files with 3 additions and 1 deletions
|
@ -37,9 +37,11 @@ __all__ = [
|
||||||
T = TypeVar("T")
|
T = TypeVar("T")
|
||||||
T_co = TypeVar("T_co", covariant=True)
|
T_co = TypeVar("T_co", covariant=True)
|
||||||
|
|
||||||
_pth = "main.db"
|
|
||||||
if Path("/data").exists():
|
if Path("/data").exists():
|
||||||
_pth = "/data/main.db"
|
_pth = "/data/main.db"
|
||||||
|
else:
|
||||||
|
_pth = "/./main.db"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
Path(_pth).touch()
|
Path(_pth).touch()
|
||||||
except PermissionError as e:
|
except PermissionError as e:
|
||||||
|
|
Loading…
Reference in a new issue