mirror of
https://github.com/immich-app/immich.git
synced 2025-07-31 15:08:44 -04:00
await in try/catch
This commit is contained in:
parent
edb024e88c
commit
4d4a5b6be4
@ -260,7 +260,7 @@ class _ThumbnailState extends State<Thumbnail> {
|
|||||||
log.info(
|
log.info(
|
||||||
'Retrieved local image $localId in ${stopwatch.elapsedMilliseconds.toStringAsFixed(2)} ms',
|
'Retrieved local image $localId in ${stopwatch.elapsedMilliseconds.toStringAsFixed(2)} ms',
|
||||||
);
|
);
|
||||||
return ImmutableBuffer.fromUint8List(pointer.asTypedList(size));
|
return await ImmutableBuffer.fromUint8List(pointer.asTypedList(size));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log.warning('Failed to retrieve local image $localId: $e');
|
log.warning('Failed to retrieve local image $localId: $e');
|
||||||
} finally {
|
} finally {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user