🛠️ fix(NostrFetcherTrait): handle empty data case by returning instead of throwing an exception

This commit is contained in:
fsociety
2024-10-16 16:19:51 +02:00
parent a16249f37a
commit a04f1e691f
2 changed files with 177 additions and 177 deletions

View File

@@ -66,7 +66,7 @@ trait NostrFetcherTrait
}
if (empty($data)) {
throw new \RuntimeException('No data received from any relay.');
return;
}
foreach ($data as $item) {