From 19227fe4e619279875f1a84040f6673c81c17a94 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 23 May 2024 15:20:41 +1000 Subject: [PATCH] feat(app): update test event callbacks --- invokeai/app/api/dependencies.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/invokeai/app/api/dependencies.py b/invokeai/app/api/dependencies.py index d9cefb0acf..b3c2acfb94 100644 --- a/invokeai/app/api/dependencies.py +++ b/invokeai/app/api/dependencies.py @@ -116,7 +116,7 @@ class ApiDependencies: print("AFTER RUN NODE", invocation.id) return True - def on_node_error(invocation, queue_item, exc_type, exc_value, exc_traceback): + def on_node_error(invocation, queue_item, error_type, error_message, error_traceback): print("NODE ERROR", invocation.id) return True @@ -124,8 +124,8 @@ class ApiDependencies: print("AFTER RUN SESSION", queue_item.item_id) return True - def on_non_fatal_processor_error(exc_type, exc_value, exc_traceback, queue_item=None): - print("NON FATAL PROCESSOR ERROR", exc_value) + def on_non_fatal_processor_error(queue_item, error_type, error_message, error_traceback): + print("NON FATAL PROCESSOR ERROR", error_message) return True session_processor = DefaultSessionProcessor(