Skip to content

Commit

Permalink
Bug - fix improved error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlVS committed Oct 15, 2023
1 parent 38c1c44 commit 5441004
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/model/cex_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,11 @@ class CexPrices {
return;
},
);
if (_body == null) return false;
_body = _res.body;
_body = _res?.body;
if (_body == null) {
_fetchingPrices = false;
return false;
}
} catch (e) {
Log('cex_provider', 'Failed to fetch usd prices: $e');
}
Expand Down

0 comments on commit 5441004

Please sign in to comment.