jdabtieu / CTFOJ

Lightweight CTF judge platform for capture-the-flag (CTF) clubs
GNU Affero General Public License v3.0
10 stars 5 forks source link

500 Internal Server Error #223

Closed jdabtieu closed 1 year ago

jdabtieu commented 1 year ago

Change the code at the bottom of application.py to return the 500 template for regular 500s, but if the URL path starts with /api/, return a json_fail 500 instead of an HTML 500

return json_fail("Internal Server Error", 500)