summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pypaste/__init__.py2
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()