TypeError: cannot concatenate 'str' and 'NoneType' objects
![](https://secure.gravatar.com/avatar/0f6659cffae7268f27fe318a4f1a42d0.jpg?s=120&d=mm&r=g)
Ok, I think I managed to screw myself.. Long time ago, I updated to the cvs snapshot, and forgot to set tags, so I got 2.2a0. I finally had time to try to straighten the mess out and "upgrade" to 2.1.6 (which I pulled with tag Release_2_1-maint, so it's post tarball). Bouncer.py keeps blowing chunks knocking out a variety of functions. An example from disabled:
/usr/local/bin/python -S /home/mailman/cron/disabled Traceback (most recent call last): File "/home/mailman/cron/disabled", line 220, in ? main() File "/home/mailman/cron/disabled", line 204, in main mlist.sendNextNotification(member) File "/home/mailman/Mailman/Bouncer.py", line 270, in sendNextNotification msg['Subject'] = 'confirm ' + info.cookie TypeError: cannot concatenate 'str' and 'NoneType' objects
I'm guessing something in one of the list structures isn't defined right now? Is there perchance a simple fix with withlist I could make? Update, sadly, doesn't do it, even though I forced it.
-Ron
![](https://secure.gravatar.com/avatar/01aa7d6d4db83982a2f6dd363d0ee0f3.jpg?s=120&d=mm&r=g)
On Thu, 2005-07-14 at 01:40, Ron Jarrell wrote:
Ok, I think I managed to screw myself.. Long time ago, I updated to the cvs snapshot, and forgot to set tags, so I got 2.2a0. I finally had time to try to straighten the mess out and "upgrade" to 2.1.6 (which I pulled with tag Release_2_1-maint, so it's post tarball). Bouncer.py keeps blowing chunks knocking out a variety of functions. An example from disabled:
/usr/local/bin/python -S /home/mailman/cron/disabled Traceback (most recent call last): File "/home/mailman/cron/disabled", line 220, in ? main() File "/home/mailman/cron/disabled", line 204, in main mlist.sendNextNotification(member) File "/home/mailman/Mailman/Bouncer.py", line 270, in sendNextNotification msg['Subject'] = 'confirm ' + info.cookie TypeError: cannot concatenate 'str' and 'NoneType' objects
I'm guessing something in one of the list structures isn't defined right now? Is there perchance a simple fix with withlist I could make? Update, sadly, doesn't do it, even though I forced it.
Ron, in this specific case, I'd suggest just blowing away all the bounce info associated with the list. You'll lose any existing information for bouncing members, but who cares? You'll just start building up that information again as you go.
Just load the list into withlist (locked) and set mlist.bounce_info = {} (i.e. an empty dict), and then save the mlist. That's untested, but it should do the trick.
-Barry
![](https://secure.gravatar.com/avatar/0f6659cffae7268f27fe318a4f1a42d0.jpg?s=120&d=mm&r=g)
At 01:28 PM 7/24/2005, Barry Warsaw wrote:
Ok, I think I managed to screw myself.. Long time ago, I updated to
On Thu, 2005-07-14 at 01:40, Ron Jarrell wrote: the
cvs snapshot, and forgot to set tags, so I got 2.2a0. I finally had time to try to straighten the mess out and "upgrade" to 2.1.6 (which I pulled with tag Release_2_1-maint, so it's post tarball). Bouncer.py keeps blowing chunks knocking out a variety of functions. An example from disabled:
/usr/local/bin/python -S /home/mailman/cron/disabled Traceback (most recent call last): File "/home/mailman/cron/disabled", line 220, in ? main() File "/home/mailman/cron/disabled", line 204, in main mlist.sendNextNotification(member) File "/home/mailman/Mailman/Bouncer.py", line 270, in sendNextNotification msg['Subject'] = 'confirm ' + info.cookie TypeError: cannot concatenate 'str' and 'NoneType' objects
I'm guessing something in one of the list structures isn't defined right now? Is there perchance a simple fix with withlist I could make? Update, sadly, doesn't do it, even though I forced it.
Ron, in this specific case, I'd suggest just blowing away all the bounce info associated with the list. You'll lose any existing information for bouncing members, but who cares? You'll just start building up that information again as you go.
Just load the list into withlist (locked) and set mlist.bounce_info = {} (i.e. an empty dict), and then save the mlist. That's untested, but it should do the trick.
Well, it seems to have worked.. I had to do it to all my lists (thank heavens for withlist -a...) but the errors have stopped.. And I get moderator messages, and password reminders again, among other things. Thanks!
![](https://secure.gravatar.com/avatar/01aa7d6d4db83982a2f6dd363d0ee0f3.jpg?s=120&d=mm&r=g)
On Tue, 2005-07-26 at 18:26, Ron Jarrell wrote:
Well, it seems to have worked.. I had to do it to all my lists (thank heavens for withlist -a...) but the errors have stopped.. And I get moderator messages, and password reminders again, among other things. Thanks!
Yay! -Barry
participants (2)
-
Barry Warsaw
-
Ron Jarrell