From e1c1a9d6a2bb2020329040a72666ff42346e3678 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 25 May 2019 05:20:21 +0200 Subject: [PATCH] interface: add comment --- electrum/interface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/electrum/interface.py b/electrum/interface.py index 3200b6f56..1dfb5c670 100644 --- a/electrum/interface.py +++ b/electrum/interface.py @@ -107,6 +107,8 @@ class NotificationSession(RPCSession): msg_id = next(self._msg_counter) self.maybe_log(f"<-- {args} {kwargs} (id: {msg_id})") try: + # note: RPCSession.send_request raises TaskTimeout in case of a timeout. + # TaskTimeout is a subclass of CancelledError, which is *suppressed* in TaskGroups response = await asyncio.wait_for( super().send_request(*args, **kwargs), timeout)