mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-14 05:04:56 -05:00
fix(ui): handle errors during cleanup
This commit is contained in:
@@ -159,7 +159,11 @@ export const runGraph = (arg: RunGraphArg): Promise<RunGraphReturn> => {
|
||||
const cleanupFunctions: Set<() => void> = new Set();
|
||||
const cleanup = () => {
|
||||
for (const func of cleanupFunctions) {
|
||||
func();
|
||||
try {
|
||||
func();
|
||||
} catch (error) {
|
||||
log.warn({ error: parseify(error) }, 'Error during cleanup');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user