From 90c0f43b2a0207991f58d22dcad4c08aef81223e Mon Sep 17 00:00:00 2001 From: Sophie Waldman <62553142+sjwmoveon@users.noreply.github.com> Date: Tue, 21 Nov 2023 15:54:32 -0500 Subject: [PATCH] Add http response to update_mailer (#924) Without returning the response, or at least the status code, it's impossible to check for errors. --- parsons/action_kit/action_kit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parsons/action_kit/action_kit.py b/parsons/action_kit/action_kit.py index 6e346f6674..6bed412659 100644 --- a/parsons/action_kit/action_kit.py +++ b/parsons/action_kit/action_kit.py @@ -651,13 +651,14 @@ def update_mailing(self, mailer_id, **kwargs): in the `ActionKit API Documentation `_. `Returns:` - ``None`` + ``HTTP response from the patch request`` """ resp = self.conn.patch( self._base_endpoint("mailer", mailer_id), data=json.dumps(kwargs) ) logger.info(f"{resp.status_code}: {mailer_id}") + return resp def rebuild_mailer(self, mailing_id): """