forked from MarseyWorld/MarseyWorld
stop the print spam
parent
8bdf1d9680
commit
cefd68755d
|
@ -83,7 +83,6 @@ def pull_slots(v):
|
|||
def blackjack_deal_to_player(v):
|
||||
if v.rehab: return {"error": "You are under Rehab award effect!"}
|
||||
|
||||
try:
|
||||
wager = int(request.values.get("wager"))
|
||||
currency = request.values.get("currency")
|
||||
create_new_game(v, wager, currency)
|
||||
|
@ -91,9 +90,6 @@ def blackjack_deal_to_player(v):
|
|||
feed = get_game_feed('blackjack')
|
||||
|
||||
return {"success": True, "state": state, "feed": feed}
|
||||
except Exception as error:
|
||||
print(error)
|
||||
return {"error": "Unable to deal a new game."}
|
||||
|
||||
|
||||
@app.post("/casino/twentyone/hit")
|
||||
|
|
|
@ -353,8 +353,7 @@ def sign_up_post(v):
|
|||
badge_grant(user=ref_user, badge_id=12)
|
||||
|
||||
if email:
|
||||
try: send_verification_email(new_user)
|
||||
except Exception as e: print(e, flush=True)
|
||||
send_verification_email(new_user)
|
||||
|
||||
|
||||
check_for_alts(new_user.id)
|
||||
|
|
|
@ -306,11 +306,7 @@ def audio(path):
|
|||
|
||||
@app.get("/robots.txt")
|
||||
def robots_txt():
|
||||
try: f = send_file("assets/robots.txt")
|
||||
except:
|
||||
print('/robots.txt', flush=True)
|
||||
abort(404)
|
||||
return f
|
||||
return send_file("assets/robots.txt")
|
||||
|
||||
no = (21,22,23,24,25,26,27)
|
||||
|
||||
|
|
|
@ -861,11 +861,7 @@ def mfa_qr(secret, v):
|
|||
img.save(mem, format="PNG")
|
||||
mem.seek(0, 0)
|
||||
|
||||
try: f = send_file(mem, mimetype="image/png", as_attachment=False)
|
||||
except:
|
||||
print('/2faqr/<secret>', flush=True)
|
||||
abort(404)
|
||||
return f
|
||||
return send_file(mem, mimetype="image/png", as_attachment=False)
|
||||
|
||||
|
||||
@app.get("/is_available/<name>")
|
||||
|
|
Loading…
Reference in New Issue