forked from goodboy/tractor
Never mask original `KeyError` in portal-error unwrapper, for now?
parent
c4496f21fc
commit
35b0c4bef0
|
@ -69,10 +69,10 @@ def _unwrap_msg(
|
||||||
__tracebackhide__ = True
|
__tracebackhide__ = True
|
||||||
try:
|
try:
|
||||||
return msg['return']
|
return msg['return']
|
||||||
except KeyError:
|
except KeyError as ke:
|
||||||
# internal error should never get here
|
# internal error should never get here
|
||||||
assert msg.get('cid'), "Received internal error at portal?"
|
assert msg.get('cid'), "Received internal error at portal?"
|
||||||
raise unpack_error(msg, channel) from None
|
raise unpack_error(msg, channel) from ke
|
||||||
|
|
||||||
|
|
||||||
class Portal:
|
class Portal:
|
||||||
|
|
Loading…
Reference in New Issue