formatting

This commit is contained in:
Suzanne Soy 2021-03-06 02:09:26 +00:00
parent 745689cf6b
commit 5ddee57ef7

View File

@ -77,7 +77,8 @@ class XternalAppsParametricTool():
# TODO: is it safe to pass input unprotected here? # TODO: is it safe to pass input unprotected here?
modelElement = instanceDocument.find(input.attrib['ref'], namespaces=input.nsmap) modelElement = instanceDocument.find(input.attrib['ref'], namespaces=input.nsmap)
if modelElement is None: if modelElement is None:
raise Exception('Could not find ' + input.attrib['ref'] + ' in instance document with namespaces=' + repr(input.nsmap)) raise Exception('Could not find ' + input.attrib['ref'] \
+ ' in instance document with namespaces=' + repr(input.nsmap))
type = types[instanceDocument.getpath(modelElement)] type = types[instanceDocument.getpath(modelElement)]
inputs[xml.getpath(input)] = (input, modelElement, type) inputs[xml.getpath(input)] = (input, modelElement, type)
return (xml, types, modelInstance, inputs) return (xml, types, modelInstance, inputs)