diff --git a/scrapers/fireroad.py b/scrapers/fireroad.py index c0ddcff..d2cfab3 100644 --- a/scrapers/fireroad.py +++ b/scrapers/fireroad.py @@ -252,7 +252,7 @@ def get_course_data(courses, course, term): raw_class.update(parse_schedule(course["schedule"])) except ValueError as e: # if we can't parse the schedule, warn - #NOTE: parse_schedule will raise a ValueError + # NOTE: parse_schedule will raise a ValueError print(f"Can't parse schedule {course_code}: {e!r}") has_schedule = False if not has_schedule: diff --git a/scrapers/utils.py b/scrapers/utils.py index 429e12a..5975b3f 100644 --- a/scrapers/utils.py +++ b/scrapers/utils.py @@ -113,7 +113,7 @@ def find_timeslot(day, slot, pm): Raises KeyError if no matching timeslot could be found. """ time_dict = EVE_TIMES if pm else TIMES - if day not in DAYS or slot not in time_dict: # error handling! + if day not in DAYS or slot not in time_dict: # error handling! raise ValueError(f"Invalid timeslot {day}, {slot}, {pm}") return DAYS[day] + time_dict[slot]