fix: Script bug fixes (bare except, timezone, regex, test)

- collector.py, compliance_checker.py, trends.py: bare except -> specific
- db_helper.py: datetime.now() -> timezone.utc (8 occurrences)
- compliance_checker.py: regex \x08 -> \b word boundary + import json
- search_providers.py: minor fixes
- test_new_features.py: service reachability check retry

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Yuzhiran Dev
2026-06-16 08:24:50 +08:00
parent d601a26850
commit 63a6fabc00
6 changed files with 33 additions and 30 deletions
+1 -1
View File
@@ -274,7 +274,7 @@ def load_trends() -> List[Dict]:
data = json.loads(TRENDS_FILE.read_text(encoding='utf-8'))
if data.get("date") == TODAY:
return data.get("trends", [])
except:
except Exception:
pass
return []