diff options
| author | Barry Warsaw | 2015-12-22 18:26:59 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2015-12-22 18:26:59 -0500 |
| commit | ea1d7f360edd8f9ac70be5ed55caeaec27feb128 (patch) | |
| tree | 1e5734c3c393e039c604e09391a401715aa257de /src/mailman/rest/lists.py | |
| parent | 85521fac12e3c67e10fbc21345e4694f3ab22fe0 (diff) | |
| download | mailman-ea1d7f360edd8f9ac70be5ed55caeaec27feb128.tar.gz mailman-ea1d7f360edd8f9ac70be5ed55caeaec27feb128.tar.zst mailman-ea1d7f360edd8f9ac70be5ed55caeaec27feb128.zip | |
Diffstat (limited to 'src/mailman/rest/lists.py')
| -rw-r--r-- | src/mailman/rest/lists.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mailman/rest/lists.py b/src/mailman/rest/lists.py index e73cadf08..f6c9716f3 100644 --- a/src/mailman/rest/lists.py +++ b/src/mailman/rest/lists.py @@ -276,8 +276,7 @@ class ArchiverGetterSetter(GetterSetter): # getting a new status. value will be the representation of the new # boolean status. archiver = self._archiver_set.get(attribute) - if archiver is None: - raise ValueError('No such archiver: {}'.format(attribute)) + assert archiver is not None, attribute archiver.is_enabled = as_boolean(value) |
