diff options
| author | Barry Warsaw | 2007-08-05 00:32:09 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2007-08-05 00:32:09 -0400 |
| commit | 959f34a62e0ec3cbe73da3d43640ccb6791cf3a0 (patch) | |
| tree | afcf868061fe6a5b56aeb7493c1e72e215fcce1a /Mailman/bin/withlist.py | |
| parent | ec734fab4791c107610caf73931e570b2d1b6bd0 (diff) | |
| download | mailman-959f34a62e0ec3cbe73da3d43640ccb6791cf3a0.tar.gz mailman-959f34a62e0ec3cbe73da3d43640ccb6791cf3a0.tar.zst mailman-959f34a62e0ec3cbe73da3d43640ccb6791cf3a0.zip | |
Diffstat (limited to 'Mailman/bin/withlist.py')
| -rw-r--r-- | Mailman/bin/withlist.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Mailman/bin/withlist.py b/Mailman/bin/withlist.py index 5e4655100..ba643af81 100644 --- a/Mailman/bin/withlist.py +++ b/Mailman/bin/withlist.py @@ -62,14 +62,13 @@ def do_list(listname, args, func): else: print >> sys.stderr, _('(unlocked)') - try: - mlist = MailList.MailList(listname, lock=LOCK) + mlist = config.db.list_manager.get(listname) + if mlist is None: + print >> sys.stderr, _('Unknown list: $listname') + else: atexit.register(exitfunc, mlist) LAST_MLIST = mlist - except Errors.MMUnknownListError: - print >> sys.stderr, _('Unknown list: $listname') - - # try to import the module and run the callable + # Try to import the module and run the callable. if func: return func(mlist, *args) return None |
