Oops
This commit is contained in:
@@ -56,8 +56,8 @@ def start_party():
|
||||
print("Party started!")
|
||||
return jsonify({"status": "ok", "message": "Party started"}), 200
|
||||
except Exception as ex:
|
||||
print(e)
|
||||
return jsonify({"status": "error", "message": f"An error occurred : {e}"}), 500
|
||||
print(ex)
|
||||
return jsonify({"status": "error", "message": f"An error occurred : {ex}"}), 500
|
||||
|
||||
@app.route("/command/party/play", methods=['POST'])
|
||||
def make_move():
|
||||
@@ -65,8 +65,8 @@ def make_move():
|
||||
game_service.make_move()
|
||||
return jsonify({"status": "ok", "message": "Party started"}), 200
|
||||
except Exception as ex:
|
||||
print(e)
|
||||
return jsonify({"status": "error", "message": f"An error occurred : {e}"}), 500
|
||||
print(ex)
|
||||
return jsonify({"status": "error", "message": f"An error occurred : {ex}"}), 500
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
|
||||
Reference in New Issue
Block a user