This commit is contained in:
Matthew Fosse 2024-03-06 17:20:10 -08:00
parent d734af351a
commit 24135c5930

View file

@ -95,6 +95,11 @@ abstract class NFTViewModelBase with Store {
} catch (e) { } catch (e) {
isLoading = false; isLoading = false;
log(e.toString()); log(e.toString());
// this is just a connection error that happens while tor is initializing
// so we can ignore it:
if (e.toString().contains("Unexpected character")) {
return;
}
bottomSheetService.queueBottomSheet( bottomSheetService.queueBottomSheet(
isModalDismissible: true, isModalDismissible: true,
widget: BottomSheetMessageDisplayWidget( widget: BottomSheetMessageDisplayWidget(
@ -145,6 +150,11 @@ abstract class NFTViewModelBase with Store {
isImportNFTLoading = false; isImportNFTLoading = false;
} catch (e) { } catch (e) {
isImportNFTLoading = false; isImportNFTLoading = false;
// this is just a connection error that happens while tor is initializing
// so we can ignore it:
if (e.toString().contains("Unexpected character")) {
return;
}
bottomSheetService.queueBottomSheet( bottomSheetService.queueBottomSheet(
isModalDismissible: true, isModalDismissible: true,
widget: BottomSheetMessageDisplayWidget( widget: BottomSheetMessageDisplayWidget(