* When an api key was not set - handle gibbon error as mailchimp error see https://app.honeybadger.io/projects/72638/faults/73753178 It's possible the right answer is instead to either (1) not make the call at all (2) not log as a mailchimp error but treat distinctly * Only report error if GibbonError, don't attempt to resubscribe Separate the rescue blocks since resubscribing doesn't make sense if we're handling a gibbon error rather than a mailchimp error * Add test for gibbon error being raised (and rescued) Copied the existing test specifying that resubscribe is attempted on a raised mailchimp error. * Remove irrelevant resubscribe check - assert error is handled only |
||
|---|---|---|
| .. | ||
| bot.rb | ||