[Mailman-Users] Fwd: Uncaught runner exception

Lothar Schilling ls at proasyl.de
Mon Mar 18 05:29:39 EDT 2019


Mit herzlichem Dank und freundlichen Grüßen!

Lothar Schilling

Förderverein Pro Asyl e.V.
Postfach 160624
60069 Frankfurt
Tel. 069 242314-40

Am 15.03.2019 um 17:25 schrieb Mark Sapiro:
> 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
>
>

Exception in fixAuthor: D▒rthe Hinz - Fl▒chtlingsrat Nds.
Mar 18 08:33:51 2019 (23745) lowercase value:
'abcdefghijklmnopqrstuvwxyz\xb5\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff'
Mar 18 10:06:50 2019 (23745) Exception in fixAuthor: Philipp Millius
(Fl▒chtlingsrat THR e.V.)
Mar 18 10:06:50 2019 (23745) lowercase value:
'abcdefghijklmnopqrstuvwxyz\xb5\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff'


More information about the Mailman-Users mailing list