don't return an error to respondus when no quizzes are found

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 <svc.cloudjenkins@instructure.com>
QA-Review: Clint Furse <cfurse@instructure.com>
Product-Review: James Williams <jamesw@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
This commit is contained in:
James Williams 2020-04-27 13:25:05 -06:00
parent 88f75943b1
commit 5a5990f09d
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ Implemented for: Canvas LMS}]
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