Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,7 +69,7 @@ class VideoArenaManager:
|
|
| 69 |
with open(self.data_file, "w") as f:
|
| 70 |
json.dump(data, f, indent=2)
|
| 71 |
return data
|
| 72 |
-
except Timeout:
|
| 73 |
print(f"Could not acquire lock on {self.data_file}")
|
| 74 |
# Handle timeout (e.g., return default data or raise an error)
|
| 75 |
default_rating = 1000.0
|
|
|
|
| 69 |
with open(self.data_file, "w") as f:
|
| 70 |
json.dump(data, f, indent=2)
|
| 71 |
return data
|
| 72 |
+
except (Timeout, KeyError):
|
| 73 |
print(f"Could not acquire lock on {self.data_file}")
|
| 74 |
# Handle timeout (e.g., return default data or raise an error)
|
| 75 |
default_rating = 1000.0
|