Catch errors (#469)

* Catch error comparing dropdown items

* Update version number and release notes

* Data conversion

* Catch error when loading image from network

* Suppress error reporting for statusCode -1
This commit is contained in:
Oliver 2024-01-10 23:24:40 +11:00 committed by GitHub
parent 4ef2e43bf3
commit d152475de4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 53 additions and 44 deletions

View file

@ -1452,11 +1452,16 @@ class InvenTreeAPI {
}
}
return getImage(
imageUrl,
width: size,
height: size
);
try {
return getImage(
imageUrl,
width: size,
height: size
);
} catch (error, stackTrace) {
sentryReportError("_getThumbnail", error, stackTrace);
return null;
}
}
/*