aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-04-26 15:53:04 -0700
committerBryan Newbold <bnewbold@robocracy.org>2022-04-26 15:53:04 -0700
commit80baeecf60ac53eb21bfdc0de3f77323f7b0e031 (patch)
treef825b0a8dfb78bacc984ed09b87b704f12b2885a /python/fatcat_web
parentba0946a86d948bef14c1b990a8b0d08f7caf9765 (diff)
downloadfatcat-80baeecf60ac53eb21bfdc0de3f77323f7b0e031.tar.gz
fatcat-80baeecf60ac53eb21bfdc0de3f77323f7b0e031.zip
citeproc with missing surname is HTTP 400, not 500
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/routes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py
index e2c90d52..b790b807 100644
--- a/python/fatcat_web/routes.py
+++ b/python/fatcat_web/routes.py
@@ -1476,7 +1476,7 @@ def release_citeproc(ident: str) -> AnyResponse:
# reports about it. these are not linked to, only show up from bots.
sentry_sdk.set_level("warning")
sentry_sdk.capture_exception(e)
- abort(500, e)
+ abort(400, e)
try:
cite = citeproc_csl(csl, style, is_html)
except citeproc_styles.StyleNotFoundError as e: