Skip to content
Browse files

gracefully handle response_labels w/o ident attribute.

fixes #9876

some malformed imports are missing the ident attribute
on some response_labels. this commit returns early instead
of throwing an exception.

Change-Id: I793172a8d343ec11436aec0ff2249feba3f94dcb
Reviewed-on: https://gerrit.instructure.com/12951
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
  • Loading branch information...
1 parent ca48b97 commit 39e232f2680686699818bd2f0d1f13ab0555ff3a @zachpendleton zachpendleton committed with bracken Aug 15, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/imsqtiv1.py
View
2 lib/imsqtiv1.py
@@ -4901,6 +4901,8 @@ def AddData (self,data):
self.data=self.data+data
def CloseObject (self):
+ if not self.identifier:
+ return
if self.labelThing==SimpleChoice:
choice=SimpleChoice()
choice.SetIdentifier(self.identifier)

0 comments on commit 39e232f

Please sign in to comment.
Something went wrong with that request. Please try again.