Skip to content

Commit

Permalink
prevent courses with partially configured canvas from breaking submis…
Browse files Browse the repository at this point in the history
…sion feedback
  • Loading branch information
zardus committed Dec 30, 2024
1 parent 58e95e8 commit c21b8a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dojo_plugin/pages/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ def sync_canvas_user(user_id, challenge_id):
dojo = dojo_challenge.dojo
if not (dojo.course and dojo.course.get("canvas_token")):
continue
sync_canvas(dojo, module=dojo_challenge.module, user_id=user_id)
try:
sync_canvas(dojo, module=dojo_challenge.module, user_id=user_id)
except RuntimeError as e:
logger.error("Canvas sync error for dojo %s", dojo, exc_info=True)


def sync_canvas(dojo, module=None, user_id=None, ignore_pending=False):
Expand Down

0 comments on commit c21b8a4

Please sign in to comment.