fbuetler / asvz-bot

ASVZ Bot to enroll to lessons. Get a place when the registration opens or when a place gets free. Works for ETH, UZH and ZHAW students.
GNU General Public License v3.0
66 stars 25 forks source link

Handle "Canceled" events #38

Open masus04 opened 10 months ago

masus04 commented 10 months ago

Current Behaviour The following stack trace is raised when trying to enroll for a canceled event:

asvz-bot  | 2023-12-06 13:08:10 INFO     Checking login credentials
asvz-bot  | 2023-12-06 13:08:12 INFO     Login to 'ETH Zürich'
asvz-bot  | 2023-12-06 13:08:14 INFO     Submitted login credentials
asvz-bot  | 2023-12-06 13:08:17 INFO     Valid login credentials
asvz-bot  | 2023-12-06 13:08:21 INFO     Starting enrollment
asvz-bot  | 2023-12-06 13:08:21 INFO     Enrollment is already open. Checking for available places.
asvz-bot  | 2023-12-06 13:08:25 INFO     Lesson has free places
asvz-bot  | 2023-12-06 13:08:25 INFO     Login to 'ETH Zürich'
asvz-bot  | 2023-12-06 13:08:26 INFO     Submitted login credentials
asvz-bot  | 2023-12-06 13:08:29 INFO     Valid login credentials
asvz-bot  | 2023-12-06 13:08:29 INFO     Waiting for enrollment

After which it simply hangs.

Expected Behaviour The bot should recognize the event has been canceled, print a suitable error message and terminate.