2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 10:45:29 +00:00

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
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;
}
}
/*