Only tuplize `.canceller` if non-`None`
parent
0e81350a42
commit
1ec30577de
|
@ -74,7 +74,9 @@ class ContextCancelled(RemoteActorError):
|
||||||
'''
|
'''
|
||||||
@property
|
@property
|
||||||
def canceller(self) -> tuple[str, str] | None:
|
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):
|
class TransportClosed(trio.ClosedResourceError):
|
||||||
|
|
Loading…
Reference in New Issue