mirror of
https://github.com/uw935/vatsimfox.git
synced 2026-09-17 09:29:00 +00:00
add: notification in viewer when error appears && api requests exception && new map-style (preparing for new update) && buttons color change
This commit is contained in:
+2
-2
@@ -22,9 +22,9 @@ def request_handler():
|
||||
try:
|
||||
return requests.get(f"{VATSIM_API_URL}{request_string}").json()
|
||||
except requests.exceptions.JSONDecodeError:
|
||||
return jsonify({"result": "not found"})
|
||||
return jsonify({"result": "error", "message": "Something went wrong. Report that error please"})
|
||||
|
||||
return jsonify({"result": "not found"})
|
||||
return jsonify({"result": "not found", "message": "Not found"})
|
||||
|
||||
|
||||
@app.route("/<int:cid>/")
|
||||
|
||||
Reference in New Issue
Block a user