Skip to content

Commit

Permalink
don't throw an exception for a metadata field out of place
Browse files Browse the repository at this point in the history
Some vendors who generate QTI put all the same meta data values
in all the metadata places. This isn't valid, but can just be
ignored instead of killing the whole converstion process

closes #6807

Change-Id: I60e6d2eda99d463198e9c40d3636410f7eedb9a5
Reviewed-on: https://gerrit.instructure.com/7918
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
  • Loading branch information
bracken committed Jan 6, 2012
1 parent 8cc0b0e commit 7c0a55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/imsqtiv1.py
Expand Up @@ -3109,7 +3109,7 @@ def __init__(self,name,attrs,parent):
self.lang=None
self.label=None
self.entry=None
self.CheckLocation((QTIMetadata),"<qtimetadatafield>")
self.CheckLocation((QTIMetadata),"<qtimetadatafield>", False)
self.ParseAttributes(attrs)

def SetAttribute_xml_lang (self,value):
Expand Down

0 comments on commit 7c0a55c

Please sign in to comment.