From 80baeecf60ac53eb21bfdc0de3f77323f7b0e031 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 26 Apr 2022 15:53:04 -0700 Subject: citeproc with missing surname is HTTP 400, not 500 --- python/fatcat_web/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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: -- cgit v1.2.3