Catch all errors thrown by "fetchRaw"
This commit is contained in:
@@ -570,7 +570,12 @@ class Processor
|
||||
*/
|
||||
public static function isActivityGone(string $url): bool
|
||||
{
|
||||
$curlResult = HTTPSignature::fetchRaw($url, 0);
|
||||
try {
|
||||
$curlResult = HTTPSignature::fetchRaw($url, 0);
|
||||
} catch (\Throwable $th) {
|
||||
Logger::notice('Error fetching url', ['url' => $url, 'error' => $th]);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (Network::isUrlBlocked($url)) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user