forked from goodboy/tractor
Hide the key error tb on remote starting errors
parent
c38d0f826e
commit
5d424e3703
|
@ -428,12 +428,12 @@ class Portal:
|
||||||
first = msg['started']
|
first = msg['started']
|
||||||
ctx._started_called = True
|
ctx._started_called = True
|
||||||
|
|
||||||
except KeyError:
|
except KeyError as kerr:
|
||||||
assert msg.get('cid'), ("Received internal error at context?")
|
assert msg.get('cid'), ("Received internal error at context?")
|
||||||
|
|
||||||
if msg.get('error'):
|
if msg.get('error'):
|
||||||
# raise the error message
|
# raise kerr from unpack_error(msg, self.channel)
|
||||||
raise unpack_error(msg, self.channel)
|
raise unpack_error(msg, self.channel) from None
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
|
@ -425,7 +425,6 @@ class Context:
|
||||||
f'Remote context error for {self.chan.uid}:{self.cid}:\n'
|
f'Remote context error for {self.chan.uid}:{self.cid}:\n'
|
||||||
f'{msg["error"]["tb_str"]}'
|
f'{msg["error"]["tb_str"]}'
|
||||||
)
|
)
|
||||||
# await ctx._maybe_error_from_remote_msg(msg)
|
|
||||||
self._error = unpack_error(msg, self.chan)
|
self._error = unpack_error(msg, self.chan)
|
||||||
|
|
||||||
# TODO: tempted to **not** do this by-reraising in a
|
# TODO: tempted to **not** do this by-reraising in a
|
||||||
|
|
Loading…
Reference in New Issue