Merge pull request #24779 from msegado/master

Fix double-wrapped exception in capa/inputtypes.py
This commit is contained in:
Felipe Montoya
2020-08-20 14:48:23 -05:00
committed by GitHub

View File

@@ -258,7 +258,6 @@ class InputTypeBase(object):
# Something went wrong: add xml to message, but keep the traceback
msg = u"Error in xml '{x}': {err} ".format(
x=etree.tostring(xml), err=text_type(err))
msg = Exception(msg)
six.reraise(Exception, Exception(msg), sys.exc_info()[2])
@classmethod