Skip to content

Commit

Permalink
expose some parsing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
leifj committed Apr 28, 2018
1 parent 2df405b commit a7d37d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyff/samlmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ def filter_invalids_from_document(t, base_url, validation_errors):
if not xsd.validate(e):
log.debug(etree.tostring(e))
error = xml_error(xsd.error_log, m=base_url)
entity_id = e.get("entityID")
entity_id = e.get("entityID","(Missing entityID)")
log.warn('removing \'%s\': schema validation failed: %s' % (entity_id, xsd.error_log))
validation_errors[entity_id] = error
validation_errors[entity_id] = "{}".format(xsd.error_log)
if e.getparent() is None:
return None
e.getparent().remove(e)
Expand Down

0 comments on commit a7d37d8

Please sign in to comment.