mm_cfg.py syntax error is handled ungracefully

Bug #1760506 reported by Bruce Perens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Low
Mark Sapiro

Bug Description

The user left a trailing quote out in mm_cfg.py . Mailman's response was to fail with the message "Mailman experienced a very low level failure". Perhaps "low-level failure" was Mailman's opinion of the user :-) One would hope that we could catch an exception from Python and give the user a bit more help. Thanks! - Bruce

Revision history for this message
Mark Sapiro (msapiro) wrote :

The issue in this specific case was scripts/driver only caught ImportError on a try: of importing mm_cfg and the exception here is SyntaxError. I have changed it to catch any exception and also indicate the traceback could be in the web server logs.

Changed in mailman:
assignee: nobody → Mark Sapiro (msapiro)
importance: Undecided → Low
milestone: none → 2.1.27
status: New → Fix Committed
Mark Sapiro (msapiro)
Changed in mailman:
status: Fix Committed → Fix Released
Revision history for this message
Bruce Perens (bruce-8) wrote : Re: [Bug 1760506] Re: mm_cfg.py syntax error is handled ungracefully

Mark, thanks very much for working on this.

   Thanks

   Bruce

On Fri, Jun 22, 2018 at 9:43 AM, Mark Sapiro <email address hidden> wrote:

> ** Changed in: mailman
> Status: Fix Committed => Fix Released
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1760506
>
> Title:
> mm_cfg.py syntax error is handled ungracefully
>
> Status in GNU Mailman:
> Fix Released
>
> Bug description:
> The user left a trailing quote out in mm_cfg.py . Mailman's response
> was to fail with the message "Mailman experienced a very low level
> failure". Perhaps "low-level failure" was Mailman's opinion of the
> user :-) One would hope that we could catch an exception from Python
> and give the user a bit more help. Thanks! - Bruce
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mailman/+bug/1760506/+subscriptions
>

--
Bruce Perens K6BP - CEO, Legal Engineering
Standards committee chair, license review committee member, co-founder,
Open Source Initiative
President, Open Research Institute; Board Member, Fashion Freedom
Initiative.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.