
Stephen J. Turnbull wrote:
Matt Blissett via Mailman-users writes:
I get exceptions logged when certain pages in the email archives ... This: File "/usr/lib/python3.12/site-packages/mistune/markdown.py", line 120, in __call__ return self.parse(s)[0] suggests it's trying to parse Markdown out of a non-markdown file. This: File "/usr/lib/python3.12/site-packages/mistune/core.py", line 214, in parse_method assert lastgroup ^^^^^^^^^ Exception Type: AssertionError at /archives/list/tdwg-tag@lists.tdwg.org/thread/HZCJQBJPACPZZN7UDNKJIPIFNTM7CA63/replies doesn't make sense to me, as core.py has only 207 lines in my installation, and there is no assert in the parse_method function. Check what version you have.
Thanks — it's version 3.1.3, so it's these lines: https://github.com/lepture/mistune/blob/v3.1.3/src/mistune/core.py#L212-L216
If you do not need the Markdown rendering, you can disable it (per list).
"Archive Rendering Mode" for this list is already set to "Plain text".
-- Matt