We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23aa89a commit 718716fCopy full SHA for 718716f
administrator/components/com_patchtester/PatchTester/Model/PullModel.php
@@ -132,7 +132,15 @@ public function apply($id)
132
{
133
// Get the Github object
134
$github = Helper::initializeGithub();
135
- $rate = $github->authorization->getRateLimit();
+
136
+ try
137
+ {
138
+ $rate = $github->authorization->getRateLimit();
139
+ }
140
+ catch (\Exception $e)
141
142
+ throw new \RuntimeException(\JText::sprintf('COM_PATCHTESTER_COULD_NOT_CONNECT_TO_GITHUB', $e->getMessage()));
143
144
145
// If over the API limit, we can't build this list
146
if ($rate->resources->core->remaining == 0)
0 commit comments