Skip to content

Commit

Permalink
Adds missing cli in import statement
Browse files Browse the repository at this point in the history
The `warn` function is not available in the `canvaslms` module, but in
the `canvaslms.cli` module. This commit fixes the import statement to
import the `warn` function from the correct module.
  • Loading branch information
dbosk committed Nov 4, 2024
1 parent b833487 commit cf504ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/canvaslms/cli/submissions.nw
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import canvasapi.exceptions
import canvasapi.file
import canvasapi.submission

import canvaslms
import canvaslms.cli
import canvaslms.cli.assignments as assignments
import canvaslms.cli.users as users
import canvaslms.hacks.canvasapi
Expand Down Expand Up @@ -755,8 +755,8 @@ def resolve_grader(submission):
try:
return submission.assignment.course.get_user(submission.grader_id)
except canvasapi.exceptions.ResourceDoesNotExist:
canvaslms.warn(f"unknown grader {submission.grader_id} "
f"for submission {submission}.")
canvaslms.cli.warn(f"unknown grader {submission.grader_id} "
f"for submission {submission}.")
return f"unknown grader {submission.grader_id}"
@

Expand Down

0 comments on commit cf504ab

Please sign in to comment.