Skip to content

Commit 0d581d0

Browse files
Fix ping job not silencing ConnectException
1 parent 892d3db commit 0d581d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Jobs/WebsitePing.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use App\ScannerClient;
66
use App\Website;
7-
use GuzzleHttp\Exception\RequestException;
7+
use GuzzleHttp\Exception\TransferException;
88
use Illuminate\Bus\Queueable;
99
use Illuminate\Queue\SerializesModels;
1010
use Illuminate\Queue\InteractsWithQueue;
@@ -58,7 +58,7 @@ public function handle()
5858
}
5959
});
6060
}
61-
} catch (RequestException $exception) {
61+
} catch (TransferException $exception) {
6262
// Ignore connect exceptions, they will be considered as non-flarum
6363
// We also need to catch RequestException for certificate issues and such
6464
}

0 commit comments

Comments
 (0)