Drop more `dict`-msg cruft from `._exceptions`
parent
d18cf32e28
commit
7b020c42cc
|
@ -972,8 +972,6 @@ def _raise_from_no_key_in_msg(
|
|||
# an internal error should never get here
|
||||
try:
|
||||
cid: str = msg.cid
|
||||
# cid: str = msg['cid']
|
||||
# except KeyError as src_err:
|
||||
except AttributeError as src_err:
|
||||
raise MessagingError(
|
||||
f'IPC `Context` rx-ed msg without a ctx-id (cid)!?\n'
|
||||
|
@ -985,7 +983,6 @@ def _raise_from_no_key_in_msg(
|
|||
# TODO: test that shows stream raising an expected error!!!
|
||||
|
||||
# raise the error message in a boxed exception type!
|
||||
# if msg.get('error'):
|
||||
if isinstance(msg, Error):
|
||||
# match msg:
|
||||
# case Error():
|
||||
|
@ -1001,7 +998,6 @@ def _raise_from_no_key_in_msg(
|
|||
# the stream._eoc outside this in the calleer always?
|
||||
# case Stop():
|
||||
elif (
|
||||
# msg.get('stop')
|
||||
isinstance(msg, Stop)
|
||||
or (
|
||||
stream
|
||||
|
|
Loading…
Reference in New Issue