Open
Description
I believe this error is related to eyecite:
A request to the citation-lookup endpoint with the following input:
text: "1984-1 Trade Cas. ¶66"
Parsed the volume as 1984-1
resulted in the following error:
invalid literal for int() with base 10: '1984-1'
Sentry Issue: COURTLISTENER-85Z
ValueError: invalid literal for int() with base 10: '1984-1'
File "django/db/models/fields/__init__.py", line 2123, in get_prep_value
return int(value)
ValueError: Field 'volume' expected a number but got '1984-1'.
(19 additional frame(s) were not displayed)
...
File "cl/citations/api_views.py", line 78, in create
**self._citation_handler(
File "cl/citations/api_views.py", line 171, in _citation_handler
self._get_clusters_for_canonical_list(
File "cl/citations/api_views.py", line 219, in _get_clusters_for_canonical_list
opinions, _count = async_to_sync(get_clusters_from_citation_str)(
File "cl/search/selectors.py", line 54, in get_clusters_from_citation_str
async for opinion in OpinionCluster.objects.filter(
File "cl/search/models.py", line 2458, in filter
clone.query.add_q(Q(*args, **kwargs))
Filed by: @albertisfu
Metadata
Metadata
Assignees
Labels
No labels