stop the print spam

master
Aevann1 2022-09-11 03:56:47 +02:00
parent 8bdf1d9680
commit cefd68755d
4 changed files with 9 additions and 22 deletions

View File

@ -83,17 +83,13 @@ 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)
state = dispatch_action(v, BlackjackAction.DEAL)
feed = get_game_feed('blackjack')
wager = int(request.values.get("wager"))
currency = request.values.get("currency")
create_new_game(v, wager, currency)
state = dispatch_action(v, BlackjackAction.DEAL)
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."}
return {"success": True, "state": state, "feed": feed}
@app.post("/casino/twentyone/hit")

View File

@ -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)

View File

@ -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)

View File

@ -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>")