diff --git a/chatexchange/client.py b/chatexchange/client.py index 6e9322a..3bd06af 100644 --- a/chatexchange/client.py +++ b/chatexchange/client.py @@ -226,7 +226,11 @@ def _worker(self): "Now serving customer %d, %r", self._requests_served, next_action) + try: self._do_action_despite_throttling(next_action) + except requests.HTTPError as exc: + self.logger.error( + "Attempt %d: denied: %s", self._requests_served, exc) self._request_queue.task_done()