We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6cbb77 commit 3898ecdCopy full SHA for 3898ecd
1 file changed
h/views/status.py
@@ -11,6 +11,9 @@
11
12
@json_view(route_name="status", http_cache=0)
13
def status(request):
14
+ if "crash" in request.params: # pragma: no cover
15
+ raise RuntimeError("This is a test crash") # noqa: EM101,TRY003
16
+
17
try:
18
request.db.execute(text("SELECT 1"))
19
except Exception as err:
0 commit comments