mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-18 18:41:48 +02:00
Remove Information exposure.
This commit is contained in:
parent
6d2941cfca
commit
d03b46100c
@ -336,8 +336,8 @@ def close_event():
|
||||
database.delete_all_entries()
|
||||
helpers.reset_current_event_id(app)
|
||||
return Response('{"status": "OK"}', mimetype='text/json')
|
||||
except Exception as e:
|
||||
response = jsonify({"status": "FAIL", "exception": e})
|
||||
except Exception:
|
||||
response = jsonify({"status": "FAIL", "message": "An error occured while closing the event."})
|
||||
response.status_code = 400
|
||||
return response
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user