forked from goodboy/tractor
1
0
Fork 0

Only tuplize `.canceller` if non-`None`

ctx_cancel_semantics_and_overruns
Tyler Goodlet 2023-04-13 15:18:00 -04:00
parent f54c415060
commit 90e41016b9
1 changed files with 3 additions and 1 deletions

View File

@ -74,7 +74,9 @@ class ContextCancelled(RemoteActorError):
'''
@property
def canceller(self) -> tuple[str, str] | None:
return self.msgdata.get('canceller')
value = self.msgdata.get('canceller')
if value:
return tuple(value)
class TransportClosed(trio.ClosedResourceError):