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

dmb.gnu open error fixed

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