Skip to content

Commit

Permalink
fix: Resolve scope within try-catch (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyvdSluijs authored Dec 31, 2024
1 parent 0f2f266 commit 9271c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MetaDataTool/Crawlers/EndpointCrawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9271c53

Please sign in to comment.