the encoding passed into the exception for unsubscribe should be self.encoding.

Bug #739384 reported by Albert O'Connor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
django-mailman
Fix Released
Medium
Bernd Schlapsi

Bug Description

Name Error:

/Users/iqc/Development/virtualenvs/people/lib/python2.6/site-packages/django_mailman/models.pyc in unsubscribe(self, email)
    181 if (msg not in UNSUBSCRIBE_MSG) and (msg not in NON_MEMBER_MSG):
    182 error = u'%s: %s' % (msg, member)
--> 183 raise Exception(error.encode(encoding))
    184
    185 def get_all_members(self):

NameError: global name 'encoding' is not defined
                                                get_all_members()

Changed in django-mailman:
assignee: nobody → Bernd Schlapsi (bernd-sch)
importance: Undecided → Medium
status: New → Confirmed
status: Confirmed → Fix Committed
Revision history for this message
Bernd Schlapsi (bernd-sch) wrote :

Thanks for the bug-report. I committed a fix for the reported issue. I also uploaded a new version of django-mailman to the pypi index:
http://pypi.python.org/pypi/django-mailman/0.2

Changed in django-mailman:
status: Fix Committed → Fix Released
Revision history for this message
Albert O'Connor (albert-albertoconnor) wrote :

Thanks a lot for writing this library. It will help me bring some pieces together for a project I am working on. Efforts like your help to make Django an awesome platform.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.