Skip to content

Commit 2d3b376

Browse files
Fix /ping endpoint 500 errors by removing deliberate exception
1 parent 12f5d2d commit 2d3b376

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

app/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212

1313
@app.get("/ping")
1414
def test():
15-
if int(time.time()) % 3 == 0:
16-
raise Exception("unknown internal error")
17-
1815
return {"pong": True}
1916

2017
@app.get("/hello")

0 commit comments

Comments
 (0)