
Matt Blissett via Mailman-users writes:
I get exceptions logged when certain pages in the email archives (imported from Mailman 2) are opened. For example, this thread:
https://lists.tdwg.org/archives/list/tdwg-tag@lists.tdwg.org/thread/HZCJQBJP...
Could this be a bug in parsing the message?
It does not appear to be a bug in parsing this message. Rather, it's trying to build the reply tree and raising the exception then.
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.
A very few versions of mistune have caused problems in the past. I wonder if there's a version incompatibility here. My installation has mistune v3.0.2. (Since the exception triggers only on certain files, you should not consider that version "known good".) It's also possible that it's an issue in HyperKitty, as HyperKitty does tweak the mistune parser with its own rules to handle email-specific syntax such as .signature blocks and multipart/signed.
If you do not need the Markdown rendering, you can disable it (per list). See https://docs.mailman3.org/projects/hyperkitty/en/latest/rendering.html for how and for more information on HyperKitty's markdown capabilities.
If that's not helpful, Mark or Abhilash will likely be along soon with more expert assistance.
-- GNU Mailman consultant (installation, migration, customization) Sirius Open Source https://www.siriusopensource.com/ Software systems consulting in Europe, North America, and Japan