nothing-unencr
quadrismegistus 4 years ago
parent ff83221037
commit 27d2073bcb

@ -167,13 +167,13 @@ class Operator(Keymaker):
self.log(f'passing msg onto {embedded_recipient} ...') self.log(f'passing msg onto {embedded_recipient} ...')
response = embedded_recipient.route_msg(embedded_msg) response = embedded_recipient.route_msg(embedded_msg)
from komrade.backend.messages import Message # from komrade.backend.messages import Message
if response and type(response)==Message: # if response and type(response)==Message:
response = response.msg_d # response = response.msg_d
self.log(f'passed msg onto {embedded_recipient}, got this response: {response} ...') self.log(f'passed msg onto {embedded_recipient}, got this response: {response} ...')
# otherwise what are we doing? # otherwise what are we doing?
else: else:
response = msg_obj.msg_d response = msg_obj
# ??? # ???
return response return response

Loading…
Cancel
Save