Skip to content

Commit

Permalink
Merge pull request #1940 from ardriveapp/handle-sync-exception
Browse files Browse the repository at this point in the history
fix sync
  • Loading branch information
thiagocarvalhodev authored Dec 12, 2024
2 parents 5406c08 + 1252767 commit c2350fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/services/arweave/arweave_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,10 @@ class ArweaveService {
return cachedData;
}

return getEntityDataFromNetwork(txId: txId);
return getEntityDataFromNetwork(txId: txId).catchError((e) {
logger.e('Failed to get entity data from network', e);
return Uint8List(0);
});
}

Future<Uint8List?> _getCachedEntityDataFromSnapshot({
Expand Down

0 comments on commit c2350fa

Please sign in to comment.