Skip to content

Commit

Permalink
don't return an error to respondus when no quizzes are found
Browse files Browse the repository at this point in the history
maybe this will fix the issue with importing into empty courses

refs #LA-750

Change-Id: Ie45ccabfed1f4838c88a6d23e3a42c35d58d00e2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/235403
Tested-by: Service Cloud Jenkins <[email protected]>
QA-Review: Clint Furse <[email protected]>
Product-Review: James Williams <[email protected]>
Reviewed-by: Jeremy Stanley <[email protected]>
  • Loading branch information
maneframe committed May 5, 2020
1 parent 88f7594 commit 5a5990f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def getServerItems(userName, password, context, itemType)
else
raise OtherError, "Invalid item type"
end
raise(OtherError, "No items found") if list.item.empty?
raise(OtherError, "No items found") if list.item.empty? && !["quiz", "qdb"].include?(itemType)
return [list]
end

Expand Down

0 comments on commit 5a5990f

Please sign in to comment.