Skip to content

Commit

Permalink
Add http response to update_mailer (#924)
Browse files Browse the repository at this point in the history
Without returning the response, or at least the status code, it's impossible to check for errors.
  • Loading branch information
sjwmoveon authored Nov 21, 2023
1 parent e350d5f commit 90c0f43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parsons/action_kit/action_kit.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,13 +651,14 @@ def update_mailing(self, mailer_id, **kwargs):
in the `ActionKit API Documentation <https://roboticdogs.actionkit.com/docs/\
manual/api/rest/actionprocessing.html>`_.
`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):
"""
Expand Down

0 comments on commit 90c0f43

Please sign in to comment.