1 parent 407b521 commit c06b73fCopy full SHA for c06b73f
1 file changed
backend/ingestion/arxiv_to_db.py
@@ -38,7 +38,7 @@ def parse_date(d: Optional[str]) -> Optional[date]:
38
return None
39
try:
40
return datetime.strptime(d, "%Y-%m-%d").date()
41
- except Exception:
+ except ValueError:
42
43
44
@@ -59,7 +59,7 @@ def authors_to_json(x: Any) -> str:
59
"""Convert author list structure into JSON string."""
60
61
return json.dumps(to_plain(x))
62
+ except (TypeError, ValueError):
63
return "[]"
64
65
0 commit comments