Skip to content

Commit

Permalink
Apply ruff/flake8-raise rule RSE102 (#349)
Browse files Browse the repository at this point in the history
RSE102 Unnecessary parentheses on raised exception
  • Loading branch information
DimitriPapadopoulos authored and martinblech committed Oct 8, 2024
1 parent 738ac3c commit 245fefc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmltodict.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 245fefc

Please sign in to comment.