From 35b0c4bef0c9088fc7adfa4536c8e32cab3aec10 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 23 Jan 2024 11:14:10 -0500 Subject: [PATCH] Never mask original `KeyError` in portal-error unwrapper, for now? --- tractor/_portal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tractor/_portal.py b/tractor/_portal.py index f310643..378f6a2 100644 --- a/tractor/_portal.py +++ b/tractor/_portal.py @@ -69,10 +69,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: