diff options
| author | Barry Warsaw | 2015-12-17 18:55:04 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2015-12-17 18:55:04 -0500 |
| commit | e916272dbbafa8a218993d9b74172b2488fb342e (patch) | |
| tree | f7a88b751ff3477d21139f6c2ac80b46f79b09b6 /src/mailman/rest/listconf.py | |
| parent | bb1d8bfb9673bd12484380502fff124fdd5d786d (diff) | |
| download | mailman-e916272dbbafa8a218993d9b74172b2488fb342e.tar.gz mailman-e916272dbbafa8a218993d9b74172b2488fb342e.tar.zst mailman-e916272dbbafa8a218993d9b74172b2488fb342e.zip | |
Diffstat (limited to 'src/mailman/rest/listconf.py')
| -rw-r--r-- | src/mailman/rest/listconf.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman/rest/listconf.py b/src/mailman/rest/listconf.py index f4458b0f9..62b21644a 100644 --- a/src/mailman/rest/listconf.py +++ b/src/mailman/rest/listconf.py @@ -218,9 +218,9 @@ class ListConfiguration: def on_patch(self, request, response): """Patch the configuration (i.e. partial update).""" if self._attribute is None: - # We're PATCHing one more attributes on the list's configuration - # resource, so all the writable attributes are valid candidates - # for updating. + # We're PATCHing one or more of the attributes on the list's + # configuration resource, so all the writable attributes are valid + # candidates for updating. converters = ATTRIBUTES else: # We're PATCHing a specific list configuration attribute @@ -247,7 +247,7 @@ class ListConfiguration: # This is the case where the URL points to the list's entire # configuration resource, but the request dictionary contains a # nonexistent attribute. - not_found( + bad_request( response, 'Unknown attribute: {}'.format(error.attribute)) return except ReadOnlyPATCHRequestError as error: |
