Uncaught runner exception: int argument required
![](https://secure.gravatar.com/avatar/374ba076bead84905266162abc728fb8.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/374ba076bead84905266162abc728fb8.jpg?s=120&d=mm&r=g)
On 10/14/2008, Charles Marcus (CMarcus@Media-Brokers.com) wrote:
I'm only on 2.5.2, but I think I did update fairly recently...
Umm... sorry, I had started to reply to the message about an issue with python 2.6 because I thought it might be related (but then decided to start a new thread), and forgot to clean this up...
I'm on python ver 2.5.2, and mailman 2.1.11...
--
Best regards,
Charles
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
Charles Marcus wrote:
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?)
Yes, the __ are correct.
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.''')
I din't know why you changed the above line, but the problem is where you have
%(limit)d KB in size.''')
it needs to be
%(kb)d KB in size.''')
as it was in the original.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/374ba076bead84905266162abc728fb8.jpg?s=120&d=mm&r=g)
On 10/15/2008 11:23 AM, Mark Sapiro wrote:
<snip>
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.''')
I din't know why you changed the above line, but the problem is where you have
%(limit)d KB in size.''')
it needs to be
%(kb)d KB in size.''')
as it was in the original.
!? Not sure how that happened (fat fingers I guess), but as usual, Mark, you were spot on...
Everything's working fine now, successfully unshunted the 35 messages stuck in the shunt directory...
Thanks!
--
Best regards,
Charles
participants (2)
-
Charles Marcus
-
Mark Sapiro