print debugs so i can check if i can get qrcode data not gotten by mail
This commit is contained in:
parent
6da22801c8
commit
a100af05de
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue