Spaces:
Running
Running
dmb.gnu open error fixed
Browse files- app_utils/conf.py +1 -1
app_utils/conf.py
CHANGED
@@ -15,7 +15,7 @@ class PersistentSettings(BaseModel):
|
|
15 |
"""
|
16 |
|
17 |
def __init__(self, **data: Any):
|
18 |
-
with shelve.open("config.db") as db:
|
19 |
super().__init__(**db.get("settings", default={}), **data)
|
20 |
|
21 |
def update(self, **data: Any) -> None:
|
|
|
15 |
"""
|
16 |
|
17 |
def __init__(self, **data: Any):
|
18 |
+
with shelve.open("config.db", flag="n", protocol=2) as db:
|
19 |
super().__init__(**db.get("settings", default={}), **data)
|
20 |
|
21 |
def update(self, **data: Any) -> None:
|