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-...@lists.tdwg.org/thread/HZCJQBJPACPZZN7UDNKJIPIFNTM7CA63/
 > 
 > 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-...@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
_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/BI4WJL4U57BHVVPEFZ7FO3YOKOWFKCGE/

This message sent to arch...@mail-archive.com

Reply via email to