From ddce160994c850aed3dc4929c7d4e4dc9780de27 Mon Sep 17 00:00:00 2001 From: b267a Date: Tue, 15 Jul 2025 16:46:12 +0200 Subject: [PATCH] Added some little error-handling. --- kit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kit.py b/kit.py index 2138186..7cd1025 100644 --- a/kit.py +++ b/kit.py @@ -141,7 +141,9 @@ def test_reservation(): }, cookies=cookies ) - print(r.status_code, r.text) + if not r.ok: + print("Slot is not available anymore!") + return False oid = r.json()['data']['id'] oat = r.json()['data']['attributes']['access_token']