diff --git a/xmltodict.py b/xmltodict.py index 953cf24..9257ca7 100755 --- a/xmltodict.py +++ b/xmltodict.py @@ -132,7 +132,7 @@ def endElement(self, full_name): should_continue = self.item_callback(self.path, item) if not should_continue: - raise ParsingInterrupted() + raise ParsingInterrupted if self.stack: data = (None if not self.data else self.cdata_separator.join(self.data))