diff options
| author | Barry Warsaw | 2012-01-27 16:21:43 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2012-01-27 16:21:43 -0500 |
| commit | 435c0a8ff1c0c624f41ebb623da744fe31174f01 (patch) | |
| tree | e9582fe7efe1267648ba9d626ca27fe891e277fb /src/mailman/model/listmanager.py | |
| parent | c5fd671f502d440b211ce4b99366aaad8be5bd1b (diff) | |
| download | mailman-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.py | 10 |
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`.""" |
