From b2a32bbb69135042f88f45f132765d9b31842c23 Mon Sep 17 00:00:00 2001 From: Martin Segado Date: Thu, 13 Aug 2020 16:01:11 -0400 Subject: [PATCH] Fix double-wrapped exception in capa/inputtypes.py (accidentally introduced in 07df64eb8cf0e5ab5a63c8ab338838284c22f593 last year) --- common/lib/capa/capa/inputtypes.py | 1 - 1 file changed, 1 deletion(-) diff --git a/common/lib/capa/capa/inputtypes.py b/common/lib/capa/capa/inputtypes.py index 52063c245d14..be20cdd9f93e 100644 --- a/common/lib/capa/capa/inputtypes.py +++ b/common/lib/capa/capa/inputtypes.py @@ -258,7 +258,6 @@ def __init__(self, system, xml, state): # 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