active_campaign
active_campaign copied to clipboard
Fix exception: NoMethodError: "undefined method `status' for #<Faraday::TimeoutError:...>"
Somehow Faraday::TimeoutError object is passed as response
parameter. In this case it doesn't have status or body, but the request url/headers still matter.
Probably the bug is in a different place that passes the invalid response
parameter, but even if that bug will be found and fixed, this change can stay as a failsafe.
Code Climate has analyzed commit 4950836f and detected 9 issues on this pull request.
Here's the issue category breakdown:
Category | Count |
---|---|
Complexity | 9 |
View more on Code Climate.
+1 any possibility to merge this @mhenrixon?