Skip to content

Commit

Permalink
feedback 2
Browse files Browse the repository at this point in the history
  • Loading branch information
arslanashraf7 committed Nov 18, 2024
1 parent 6e10166 commit 88f1500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ol_openedx_canvas_integration/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@ def push_edx_grades_to_canvas(course):
Returns:
dict: A dictionary with some information about the success/failure of the updates
""" # noqa: E501
canvas_course_id = get_canvas_course_id(course)
if not course:
raise Exception(COURSE_KEY_ID_EMPTY) # noqa: TRY002

canvas_course_id = get_canvas_course_id(course)
if not canvas_course_id:
msg = f"No canvas_course_id set for course: {course.id}"
raise Exception(msg) # noqa: TRY002
Expand Down

0 comments on commit 88f1500

Please sign in to comment.