Spaces:
Running
Running
dmb.gnu open error fixed
Browse files- app_utils/conf.py +1 -1
app_utils/conf.py
CHANGED
@@ -22,7 +22,7 @@ class PersistentSettings(BaseModel):
|
|
22 |
"""
|
23 |
Persist the pydantic-dict that represents the model
|
24 |
"""
|
25 |
-
with shelve.open("config.db") as db:
|
26 |
db["settings"] = {**self.dict(), **data}
|
27 |
|
28 |
|
|
|
22 |
"""
|
23 |
Persist the pydantic-dict that represents the model
|
24 |
"""
|
25 |
+
with shelve.open("config.db", flag="n", protocol=2) as db:
|
26 |
db["settings"] = {**self.dict(), **data}
|
27 |
|
28 |
|