Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

KeyError in u'moderation_reasons' #1

Open
logmod opened this issue Dec 25, 2016 · 2 comments
Open

KeyError in u'moderation_reasons' #1

logmod opened this issue Dec 25, 2016 · 2 comments

Comments

@logmod
Copy link

logmod commented Dec 25, 2016

Hi,

when I create a new list and then send a message from an unsubscribed e-mail to this list, I get a reply saying: The message is being held because: N/A

As a moderator I get an info mail to enter the dashboard or to reply with approved: [list-password] as first line in the body. (Which password by the way? How would I set this?).

When I enter the dashboard to view the held messages the following exception occurs:

Request URL: http://example.com:8000/mailman3/lists/testlist.example.com/held_messages
Django Version: 1.8.17
Exception Location: /opt/mailman/mailman-bundler/eggs/mailmanclient-1.0.1-py2.7.egg/mailmanclient/_client.py in held, line 443
Python Executable: /opt/mailman/venv/bin/python2
Python Version: 2.7.9

Traceback:
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.17-py2.7.egg/django/core/handlers/base.py" in get_response
  132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.17-py2.7.egg/django/views/generic/base.py" in view
  71.             return self.dispatch(request, *args, **kwargs)
File "/opt/mailman/mailman-bundler/eggs/postorius-1.0.3-py2.7.egg/postorius/views/generic.py" in dispatch
  67.         return super(MailingListView, self).dispatch(request, *args, **kwargs)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.17-py2.7.egg/django/views/generic/base.py" in dispatch
  89.         return handler(request, *args, **kwargs)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.17-py2.7.egg/django/utils/decorators.py" in _wrapper
  34.             return bound_func(*args, **kwargs)
File "/opt/mailman/mailman-bundler/eggs/postorius-1.0.3-py2.7.egg/postorius/auth/decorators.py" in wrapper
  81.             return fn(*args, **kwargs)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.17-py2.7.egg/django/utils/decorators.py" in bound_func
  30.                 return func.__get__(self, type(self))(*args2, **kwargs2)
File "/opt/mailman/mailman-bundler/eggs/postorius-1.0.3-py2.7.egg/postorius/views/list.py" in get
  387.         held_messages = utils.paginate(request, self.mailing_list.held, 20)
File "/opt/mailman/mailman-bundler/eggs/mailmanclient-1.0.1-py2.7.egg/mailmanclient/_client.py" in held
  443.                            moderation_reasons=entry['moderation_reasons'],

Exception Type: KeyError at /mailman3/lists/testlist.example.com/held_messages
Exception Value: u'moderation_reasons'

I have installed the apps via mailman-bundler.git

Regards
Logmod

@ghost
Copy link

ghost commented Sep 10, 2017

@logmod the official mailman bugtracker is here: https://gitlab.com/mailman/mailman

However, I believe the issue you have is known and it was fixed in a later mailman version already available. The problem is that you are getting an outdated version of mailman because mailman-bundler is no longer supported: https://gitlab.com/mailman/mailman-bundler/blob/master/README.rst

@P-EB
Copy link
Owner

P-EB commented Dec 12, 2017

@Jonast @logmod I'm sorry, I admit I did not follow this github repo for a long time as the official repo for the debian package is now on git.debian.org.

I probably should put some disclaimer somewhere.

Cheers.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants