This commit is contained in:
Cyberes 2023-12-13 09:04:34 -07:00
parent c1988263d6
commit c5724d8b36
2 changed files with 6 additions and 1 deletions

View File

@ -70,6 +70,11 @@ if __name__ == "__main__":
valid, r = course_view.test_course(API_URL, COOKIE_JAR) valid, r = course_view.test_course(API_URL, COOKIE_JAR)
if not valid: if not valid:
print(f'Invalid course: {course_view.course_id} - {r}') print(f'Invalid course: {course_view.course_id} - {r}')
if r.status_code == 401:
print('Got a bad status code:', r.status_code)
quit(1)
continue continue
course_view.assignments = find_course_assignments(course, USER_ID) course_view.assignments = find_course_assignments(course, USER_ID)

View File

@ -4,4 +4,4 @@ canvasapi==3.2.0
jsonpickle==3.0.2 jsonpickle==3.0.2
requests==2.31.0 requests==2.31.0
tqdm==4.66.1 tqdm==4.66.1
python-dateutil==-2.8.2 python-dateutil==2.8.2