We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf70e8 commit 8b57156Copy full SHA for 8b57156
changelog.d/26.fix.md
@@ -0,0 +1 @@
1
+Fix possible bug in error handling
src/rtfparse/parser.py
@@ -93,7 +93,7 @@ def parse_file(self) -> entities.Group:
93
self.parsed = entities.Group(encoding, file)
94
except Exception as err:
95
logger.exception(err)
96
- self.parsed == Namespace()
+ self.parsed = Namespace()
97
self.parsed.structure = list()
98
finally:
99
if self.rtf_path is not None:
0 commit comments