Spaces:
Running
on
Zero
Running
on
Zero
Update user_history.py
Browse files- user_history.py +4 -1
user_history.py
CHANGED
|
@@ -39,7 +39,10 @@ def setup(folder_path: str | Path | None = None) -> None:
|
|
| 39 |
user_history.initialized = True
|
| 40 |
|
| 41 |
# Clean duplicates
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
|
| 45 |
def render() -> None:
|
|
|
|
| 39 |
user_history.initialized = True
|
| 40 |
|
| 41 |
# Clean duplicates
|
| 42 |
+
try:
|
| 43 |
+
_clean_duplicates()
|
| 44 |
+
except Exception as e:
|
| 45 |
+
print(f"Failed to clean duplicates: {e}")
|
| 46 |
|
| 47 |
|
| 48 |
def render() -> None:
|