mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Bank Transactions
This commit is contained in:
parent
b3351d88f1
commit
17d90c0291
@ -128,12 +128,19 @@ class NinjaMailerJob implements ShouldQueue
|
||||
/* Count the amount of emails sent across all the users accounts */
|
||||
Cache::increment($this->company->account->key);
|
||||
|
||||
} catch (\Exception | \RuntimeException $e) {
|
||||
} catch (\Exception | \RuntimeException | \Google\Service\Exception $e) {
|
||||
|
||||
nlog("error failed with {$e->getMessage()}");
|
||||
|
||||
$message = $e->getMessage();
|
||||
|
||||
if($e instanceof \Google\Service\Exception){
|
||||
|
||||
if(($e->getCode() == 429) && ($this->nmo->to_user instanceof ClientContact))
|
||||
$this->logMailError("Google rate limiter hit, we will retry in 30 seconds.", $this->nmo->to_user->client);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Post mark buries the proper message in a a guzzle response
|
||||
* this merges a text string with a json object
|
||||
|
Loading…
x
Reference in New Issue
Block a user