[Mailman-Users] Uncaught runner exception: int argument required
Charles Marcus
CMarcus at Media-Brokers.com
Tue Oct 14 23:51:34 CEST 2008
Greetings,
Ok, I just discovered that I'm not getting notifications when someone
sends a message that is too big... usually I get a notification, and can
click the link and 'Tend to pending moderator requests', and discard &
forward a copy to the list owner.
I don't get too many of these, so didn't notice right away that this
stopped working sometime recently...
I'm only on 2.5.2, but I think I did update fairly recently...
I'm *almost* certain (but wouldn't bet my life on it) that it was
working since the current modified date (8/21), which was after updating
to 2.1.11 I believe...
Anyway, thanks for any pointers/suggestions, and here's the error from
the errors log:
Oct 14 16:48:38 2008 (10988) Uncaught runner exception: int argument
required
Oct 14 16:48:38 2008 (10988) Traceback (most recent call last):
File
"/var/tmp/portage/net-mail/mailman-2.1.11/image//usr/lib64/mailman/Mailman/Queue/Runner.py",
line 120, in _oneloop
File
"/var/tmp/portage/net-mail/mailman-2.1.11/image//usr/lib64/mailman/Mailman/Queue/Runner.py",
line 191, in _onefile
File
"/var/tmp/portage/net-mail/mailman-2.1.11/image//usr/lib64/mailman/Mailman/Queue/IncomingRunner.py",
line 130, in _dispose
File
"/var/tmp/portage/net-mail/mailman-2.1.11/image//usr/lib64/mailman/Mailman/Queue/IncomingRunner.py",
line 153, in _dopipeline
File "/usr/lib64/mailman/Mailman/Handlers/Hold.py", line 188, in process
MessageTooBig(bodylen, mlist.max_message_size))
File "/usr/lib64/mailman/Mailman/Handlers/Hold.py", line 225, in
hold_for_approval
msgdata['rejection_notice'] = Utils.wrap(exc.rejection_notice(mlist))
File "/usr/lib64/mailman/Mailman/Handlers/Hold.py", line 109, in
rejection_notice
%(limit)d KB in size.''')
File
"/var/tmp/portage/net-mail/mailman-2.1.11/image//usr/lib64/mailman/Mailman/i18n.py",
line 90, in _
TypeError: int argument required
Oct 14 16:48:38 2008 (10988) SHUNTING:
1224017316.8633909+cae6eec431b82efafdf75d6a598d1f65f2370453
And here's the customized block in Hold.py:
(Hmmm... did something weird happen when I copy/pasted after the last
update? Are there supposed to be dbl underscores (__) there?)
Beginning at line 93:
class MessageTooBig(Errors.HoldMessage):
def __init__(self, msgsize, limit):
self.__msgsize = msgsize
self.__limit = limit
def reason_notice(self):
size = self.__msgsize
limit = self.__limit
return _('''Your message (or the attachment) is too big.
This list has a size limit of %(limit)d KB. Messages larger than this will
require moderator intervention before it will be forwarded to our Sales
Staff.''')
def rejection_notice(self, mlist):
kb = self.__limit
return _('''Your message was too big; please trim it to less than
%(limit)d KB in size.''')
--
Best regards,
Charles
More information about the Mailman-Users
mailing list