From 3782b2f709c86c6047263ef7d87809c7bc4efbc9 Mon Sep 17 00:00:00 2001 From: duck_master Date: Mon, 6 Jan 2025 17:49:07 -0500 Subject: [PATCH] run black --- scrapers/fireroad.py | 2 +- scrapers/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]