diff options
| author | Barry Warsaw | 2015-01-02 10:42:51 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2015-01-02 10:42:51 -0500 |
| commit | 151a1508377e07cf24bac49fe7585e47e14c7504 (patch) | |
| tree | 69f998f5d0a456c19412edfdd73aeddb78c838d7 /src/mailman/core | |
| parent | 27e7d553d29e5a547d8164b658f5e8881b026cb2 (diff) | |
| download | mailman-151a1508377e07cf24bac49fe7585e47e14c7504.tar.gz mailman-151a1508377e07cf24bac49fe7585e47e14c7504.tar.zst mailman-151a1508377e07cf24bac49fe7585e47e14c7504.zip | |
Diffstat (limited to 'src/mailman/core')
| -rw-r--r-- | src/mailman/core/runner.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mailman/core/runner.py b/src/mailman/core/runner.py index 1fabe0a8f..5ffc3f57d 100644 --- a/src/mailman/core/runner.py +++ b/src/mailman/core/runner.py @@ -221,18 +221,19 @@ class Runner: # compatibility. list_manager = getUtility(IListManager) list_id = msgdata.get('listid', missing) + fqdn_listname = None if list_id is missing: - listname = msgdata.get('listname', missing) + fqdn_listname = msgdata.get('listname', missing) # XXX Deprecate. - if listname is not missing: - mlist = list_manager.get(listname) + if fqdn_listname is not missing: + mlist = list_manager.get(fqdn_listname) else: mlist = list_manager.get_by_list_id(list_id) if mlist is None: + identifier = (list_id if list_id is not None else fqdn_listname) elog.error( '%s runner "%s" shunting message for missing list: %s', - msg['message-id'], self.name, - ('n/a' if listname is missing else listname)) + msg['message-id'], self.name, identifier) config.switchboards['shunt'].enqueue(msg, msgdata) return # Now process this message. We also want to set up the language |
