Skip to content

Commit 8bfad65

Browse files
committed
Refactor. Messages
1 parent 80b2d36 commit 8bfad65

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

spawn/eigr/functions/actors/internal/controller.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ def handle_response(system, actor_name, result):
8686
updated_context = Context()
8787

8888
if result.get_metadata() != None and len(result.get_metadata().get_metadata()) > 0:
89-
print("Metadata -----------".format(result.metadata))
9089
updated_context.metadata = result.get_metadata.get_metadata()
9190

9291
if result.get_metadata() != None and len(result.get_metadata().get_tags()) > 0:
@@ -153,8 +152,9 @@ def handle_invoke(self, data) -> ActorInvocationResponse:
153152
action_name=actor_invocation.action_name, input=input, ctx=ctx)
154153

155154
if not isinstance(result, Value):
156-
raise Exception(
157-
"Action did not return a valid type in its response. Valid Value found {}".format(type(result)))
155+
message = "Action did not return a valid type in its response. Valid Value found {}".format(
156+
type(result))
157+
raise Exception(message)
158158

159159
# Handle result value
160160
return handle_response(actor_system, actor_name, result)

0 commit comments

Comments
 (0)