X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FLRDD%2Flib%2Fdiscovery.php;h=54e40fe80110980b9d049cbf58e786fc4e3fa789;hb=985f3b44b7378d95a5294b85beac6c8506810a48;hp=c8cf3277e27bcaa9238021bfd9a7d3dfe67e61b5;hpb=e1df763940b3067ed06a8588ea3a309e6f655341;p=quix0rs-gnu-social.git diff --git a/plugins/LRDD/lib/discovery.php b/plugins/LRDD/lib/discovery.php index c8cf3277e2..54e40fe801 100644 --- a/plugins/LRDD/lib/discovery.php +++ b/plugins/LRDD/lib/discovery.php @@ -126,7 +126,14 @@ class Discovery $xrd->loadString($response->getBody()); return $xrd; + + } catch (ClientException $e) { + if ($e->getCode() === 403) { + common_log(LOG_INFO, sprintf('%s: Aborting discovery on URL %s: %s', _ve($class), _ve($uri), _ve($e->getMessage()))); + break; + } } catch (Exception $e) { + common_log(LOG_INFO, sprintf('%s: Failed for %s: %s', _ve($class), _ve($uri), _ve($e->getMessage()))); continue; } }