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 6c8a083 commit 720c2a0Copy full SHA for 720c2a0
app/Jobs/UpdateSite.php
@@ -8,6 +8,7 @@
8
use App\Models\Site;
9
use App\RemoteSite\Connection;
10
use App\RemoteSite\Responses\PrepareUpdate;
11
+use GuzzleHttp\Exception\RequestException;
12
use Illuminate\Contracts\Queue\ShouldQueue;
13
use Illuminate\Foundation\Queue\Queueable;
14
use Illuminate\Support\Facades\App;
@@ -70,7 +71,11 @@ public function handle(): void
70
71
}
72
73
// Store pre-update response code
- $this->preUpdateCode = $this->site->getFrontendStatus();
74
+ try {
75
+ $this->preUpdateCode = $this->site->getFrontendStatus();
76
+ } catch (RequestException $e) {
77
+ // Catch request exceptions - they should not stop the process
78
+ }
79
80
// Let site fetch available updates
81
$updateResult = $connection->getUpdate();
0 commit comments