diff --git a/MetaDataTool/Crawlers/EndpointCrawler.php b/MetaDataTool/Crawlers/EndpointCrawler.php index b275dd9..9e23bb6 100644 --- a/MetaDataTool/Crawlers/EndpointCrawler.php +++ b/MetaDataTool/Crawlers/EndpointCrawler.php @@ -73,8 +73,8 @@ private function crawlWebPage(string $url): ?Endpoint $this->domCrawler->add($html); $endpoint = $this->domCrawler->filterXPath('//*[@id="endpoint"]')->first()->text(); - $scope = $this->domCrawler->filterXPath('//*[@id="scope"]')->first()->text(); try { + $scope = $this->domCrawler->filterXPath('//*[@id="scope"]')->first()->text(); $uri = $this->domCrawler->filterXPath('//*[@id="serviceUri"]')->first()->text(); } catch (\Exception) { return null;