mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-06 23:32:11 +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:
1 parent
4ef2e43bf3
commit
d152475de4
6 files changed
+53
-44
No files matched your search
+10
-5
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user