[Pkg-mailman-hackers] mailman: fix for 412142 gives unicodify_archives traceback
Lionel Elie Mamane
lionel at mamane.lu
Thu May 31 15:01:45 UTC 2007
On Fri, Apr 06, 2007 at 12:45:25PM +0200, Lionel Elie Mamane wrote:
> On Wed, Apr 04, 2007 at 09:58:06AM +0800, Paul Wise wrote:
>> The other day due to hardware issues, we migrated
>> lists.indymedia.org data from mailman 2.1.7 to 2.1.9.
>> Unfortunately, the unicodify_archives script gave a traceback:
> Analysis: When loading the index to be converted, the said loading
> fails for some reason or another (line 168 or 170 of
> HyperDatabase.py raises an exception). This leads to the system
> resorting the index that failed to load,
This analysis was wrong. I thought the Python construct:
try:
...
except Error:
...
else:
foo
meant that foo is executed if another exception than "Error" is raised
in the try block, but actually that code gets executed when *no*
exception is raised.
> (...) so one solution would be to add a parallel loading path that
> never tries to sort ("leave dirty" or something like that). But that
> is ugly and a maintenance nightmare.
I ended up doing that. It is in the pkg-mailman SVN now (for sid).
--
Lionel
More information about the Pkg-mailman-hackers
mailing list