print debugs so i can check if i can get qrcode data not gotten by mail

This commit is contained in:
i 2026-02-08 13:58:12 +01:00
parent 6da22801c8
commit a100af05de

View file

@ -86,6 +86,7 @@ class BookingClient:
try:
data = booking.json().get("data", {})
print(booking.text)
except (ValueError, JSONDecodeError):
if "Bad Request" in booking.text and "400" in booking.text:
print("❌ Bad Request 400 on Booking request.")
@ -109,6 +110,7 @@ class BookingClient:
try:
customer = checkout.json().get("default", {}).get("customer", {})
print(checkout.text)
except (ValueError, JSONDecodeError):
print(f"❌ Invalid JSON response from checkout form: {checkout.text}")
# print(f"❌ Invalid JSON response from checkout form: {checkout.text[:200]}")
@ -131,6 +133,7 @@ class BookingClient:
)
if final.ok:
print(final.text)
print("✅ Reservation successful!")
return True