summaryrefslogtreecommitdiff
path: root/src/mailman/model/listmanager.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-01-27 16:21:43 -0500
committerBarry Warsaw2012-01-27 16:21:43 -0500
commit435c0a8ff1c0c624f41ebb623da744fe31174f01 (patch)
treee9582fe7efe1267648ba9d626ca27fe891e277fb /src/mailman/model/listmanager.py
parentc5fd671f502d440b211ce4b99366aaad8be5bd1b (diff)
downloadmailman-435c0a8ff1c0c624f41ebb623da744fe31174f01.tar.gz
mailman-435c0a8ff1c0c624f41ebb623da744fe31174f01.tar.zst
mailman-435c0a8ff1c0c624f41ebb623da744fe31174f01.zip
Diffstat (limited to 'src/mailman/model/listmanager.py')
-rw-r--r--src/mailman/model/listmanager.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mailman/model/listmanager.py b/src/mailman/model/listmanager.py
index 91d653982..09a079e3c 100644
--- a/src/mailman/model/listmanager.py
+++ b/src/mailman/model/listmanager.py
@@ -65,13 +65,9 @@ class ListManager:
def get(self, fqdn_listname):
"""See `IListManager`."""
listname, at, hostname = fqdn_listname.partition('@')
- mlist = config.db.store.find(MailingList,
- list_name=listname,
- mail_host=hostname).one()
- if mlist is not None:
- # XXX Fixme
- mlist._restore()
- return mlist
+ return config.db.store.find(MailingList,
+ list_name=listname,
+ mail_host=hostname).one()
def delete(self, mlist):
"""See `IListManager`."""