use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RequestOptions;
+use Psr\Http\Client\ClientExceptionInterface;
use wcf\system\io\AtomicWriter;
use wcf\system\io\HttpFactory;
use wcf\system\SingletonFactory;
} else {
throw new FontDownloadFailed("Unable to download font family '" . $family . "'.", '', $e);
}
- } catch (RequestException $e) {
+ } catch (ClientExceptionInterface $e) {
throw new FontDownloadFailed("Unable to download font family '" . $family . "'.", '', $e);
}
}