Never mask original `KeyError` in portal-error unwrapper, for now?

ctx_cancel_semantics_and_overruns_REVERSED_FACEPALM
Tyler Goodlet 2024-01-23 11:14:10 -05:00
parent cdee6f9354
commit b5431c0343
1 changed files with 2 additions and 2 deletions

View File

@ -68,10 +68,10 @@ def _unwrap_msg(
__tracebackhide__ = True
try:
return msg['return']
except KeyError:
except KeyError as ke:
# internal error should never get here
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: