From fa39a16ee4592514877530f2e4ec58c3dcf2c12c Mon Sep 17 00:00:00 2001 From: John Turner Date: Sun, 7 Sep 2025 21:53:58 -0400 Subject: return HTTPInternalServerError is checking for key fails --- pypaste/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypaste/__init__.py b/pypaste/__init__.py index 5842563..b5b26ff 100644 --- a/pypaste/__init__.py +++ b/pypaste/__init__.py @@ -115,7 +115,7 @@ class App: exists = await self.database.exists(key) except Exception as e: log_error(f"failed to check if key exists in database: {e}") - return web.HTTPBadRequest() + return web.HTTPInternalServerError() if not exists: return web.HTTPNotFound() -- cgit v1.2.3