djkesu commited on
Commit
b296e31
1 Parent(s): 36f5e2d

dmb.gnu open error fixed

Browse files
Files changed (1) hide show
  1. 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