[Mailman-Users] Fwd: Uncaught runner exception

Mark Sapiro mark at msapiro.net
Fri Mar 15 12:25:18 EDT 2019


On 3/15/19 4:27 AM, Lothar Schilling wrote:
> Am 14.03.2019 um 18:55 schrieb Mark Sapiro:
>> On 3/14/19 2:39 AM, Lothar Schilling wrote:
...
>>> string
>>> <module 'string' from '/usr/lib64/python2.6/string.pyc'>
...
> Sadly not:
> 
> import string
> string.lowercase
>     'abcdefghijklmnopqrstuvwxyz'
> string  
>     <module 'string' from 'string.pyc'>


This is interesting. Here you get <module 'string' from 'string.pyc'>
and before (above) you got <module 'string' from
'/usr/lib64/python2.6/string.pyc'>.

I wonder why the difference.

In the message at
<https://mail.python.org/pipermail/mailman-users/2019-March/084243.html>
I suggested this patch

=== modified file 'Mailman/Archiver/pipermail.py'
--- Mailman/Archiver/pipermail.py	2018-05-03 21:23:47 +0000
+++ Mailman/Archiver/pipermail.py	2019-03-02 04:51:23 +0000
@@ -60,9 +60,12 @@
     else:
         # Mixed case; assume that small parts of the last name will be
         # in lowercase, and check them against the list.
-        while i>0 and (L[i-1][0] in lowercase or
-                       L[i-1].lower() in smallNameParts):
-            i = i - 1
+        try:
+            while i>0 and (L[i-1][0] in lowercase or
+                           L[i-1].lower() in smallNameParts):
+                i = i - 1
+        except:
+            syslog('error', 'Exception in fixAuthor: %s', author)
     author = SPACE.join(L[-1:] + L[i:-1]) + ', ' + SPACE.join(L[:i])
     return author



I assume you still have that installed. In any case, if you add a second
syslog line after the first

            syslog('error', 'lowercase value: %r', lowercase)

What do you then get in Mailman's error log


-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the Mailman-Users mailing list