mirror of
https://github.com/getwud/wud.git
synced 2025-12-05 18:46:22 -06:00
Merge pull request #657 from d0gkiller87/fix-no-such-image
Handle image lookup failures to prevent the `No such image...` error along with a blank container list
This commit is contained in:
@@ -632,9 +632,12 @@ class Docker extends Component {
|
||||
container.Labels[wudDisplayIcon],
|
||||
container.Labels[wudTriggerInclude],
|
||||
container.Labels[wudTriggerExclude],
|
||||
),
|
||||
).catch(e => {
|
||||
this.log.warn(`Failed to fetch image detail for container ${container.Id}: ${e.message}`);
|
||||
return e;
|
||||
}),
|
||||
);
|
||||
const containersWithImage = await Promise.all(containerPromises);
|
||||
const containersWithImage = (await Promise.all(containerPromises)).filter(result => !(result instanceof Error));
|
||||
|
||||
// Return containers to process
|
||||
const containersToReturn = containersWithImage.filter(
|
||||
|
||||
Reference in New Issue
Block a user