Skip to content

Commit

Permalink
fix broad-exception-caught in fireroad.py
Browse files Browse the repository at this point in the history
  • Loading branch information
duck-master committed Jan 6, 2025
1 parent 0e06798 commit 7ad3dbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scrapers/fireroad.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,9 @@ def get_course_data(courses, course, term):
raw_class.update(parse_schedule(course["scheduleSpring"]))
else:
raw_class.update(parse_schedule(course["schedule"]))
except Exception as e:
except ValueError as e:
# if we can't parse the schedule, warn
#NOTE: parse_schedule will raise a ValueError
print(f"Can't parse schedule {course_code}: {e!r}")
has_schedule = False
if not has_schedule:
Expand Down

0 comments on commit 7ad3dbb

Please sign in to comment.