Skip to content

Commit

Permalink
Merge pull request #80 from j0k3r/bad-credentials
Browse files Browse the repository at this point in the history
Avoid exception when receiving a bad credential
  • Loading branch information
j0k3r committed Apr 8, 2017
2 parents 70f9b5d + bf7d565 commit be5895f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/AppBundle/Github/RateLimitTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ private function getRateLimits(Client $client, LoggerInterface $logger)
} catch (HttpException $e) {
$logger->error('RateLimit call goes bad.', ['exception' => $e]);

return false;
} catch (\Exception $e) {
$logger->error('RateLimit call goes REALLY bad.', ['exception' => $e]);

return false;
}
}
Expand Down

0 comments on commit be5895f

Please sign in to comment.