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): def blackjack_deal_to_player(v):
if v.rehab: return {"error": "You are under Rehab award effect!"} if v.rehab: return {"error": "You are under Rehab award effect!"}
try: wager = int(request.values.get("wager"))
wager = int(request.values.get("wager")) currency = request.values.get("currency")
currency = request.values.get("currency") create_new_game(v, wager, currency)
create_new_game(v, wager, currency) state = dispatch_action(v, BlackjackAction.DEAL)
state = dispatch_action(v, BlackjackAction.DEAL) feed = get_game_feed('blackjack')
feed = get_game_feed('blackjack')
return {"success": True, "state": state, "feed": feed} 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") @app.post("/casino/twentyone/hit")

View File

@ -353,8 +353,7 @@ def sign_up_post(v):
badge_grant(user=ref_user, badge_id=12) badge_grant(user=ref_user, badge_id=12)
if email: if email:
try: send_verification_email(new_user) send_verification_email(new_user)
except Exception as e: print(e, flush=True)
check_for_alts(new_user.id) check_for_alts(new_user.id)

View File

@ -306,11 +306,7 @@ def audio(path):
@app.get("/robots.txt") @app.get("/robots.txt")
def robots_txt(): def robots_txt():
try: f = send_file("assets/robots.txt") return send_file("assets/robots.txt")
except:
print('/robots.txt', flush=True)
abort(404)
return f
no = (21,22,23,24,25,26,27) no = (21,22,23,24,25,26,27)

View File

@ -861,11 +861,7 @@ def mfa_qr(secret, v):
img.save(mem, format="PNG") img.save(mem, format="PNG")
mem.seek(0, 0) mem.seek(0, 0)
try: f = send_file(mem, mimetype="image/png", as_attachment=False) return send_file(mem, mimetype="image/png", as_attachment=False)
except:
print('/2faqr/<secret>', flush=True)
abort(404)
return f
@app.get("/is_available/<name>") @app.get("/is_available/<name>")