diff options
author | John Turner <jturner.usa@gmail.com> | 2025-09-07 21:53:58 -0400 |
---|---|---|
committer | John Turner <jturner.usa@gmail.com> | 2025-09-07 21:53:58 -0400 |
commit | fa39a16ee4592514877530f2e4ec58c3dcf2c12c (patch) | |
tree | d36636486fb205c5e38081105460ada3beffdb91 | |
parent | e83dca10bc06bdb49a09282a8f3e62676b926e14 (diff) | |
download | pypaste-fa39a16ee4592514877530f2e4ec58c3dcf2c12c.tar.gz |
return HTTPInternalServerError is checking for key fails
-rw-r--r-- | pypaste/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |