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:
+1
-1
@@ -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 []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user