Spaces:
Build error
Build error
Commit
·
a50e161
1
Parent(s):
702f0a9
add in parents=True
Browse files- app/data.py +1 -1
app/data.py
CHANGED
|
@@ -32,7 +32,7 @@ class Data:
|
|
| 32 |
with open(data_path, "rb") as f:
|
| 33 |
self.data = pkl.load(f)
|
| 34 |
else:
|
| 35 |
-
data_path.parent.mkdir(exist_ok=True)
|
| 36 |
with open(data_path, "wb") as f:
|
| 37 |
pkl.dump({}, f)
|
| 38 |
self.data = {}
|
|
|
|
| 32 |
with open(data_path, "rb") as f:
|
| 33 |
self.data = pkl.load(f)
|
| 34 |
else:
|
| 35 |
+
data_path.parent.mkdir(parents=True, exist_ok=True)
|
| 36 |
with open(data_path, "wb") as f:
|
| 37 |
pkl.dump({}, f)
|
| 38 |
self.data = {}
|