We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cc50ee commit 742f491Copy full SHA for 742f491
electrumx/server/session.py
@@ -956,6 +956,15 @@ def unsubscribe_hashX(self, hashX):
956
return self.hashX_subs.pop(hashX, None)
957
958
async def notify(self, touched, height_changed):
959
+ '''Wrap _notify_inner; websockets raises exceptions for unclear reasons.'''
960
+ try:
961
+ await self._notify_inner(touched, height_changed)
962
+ except CancelledError:
963
+ raise
964
+ except Exception:
965
+ self.logger.exception('unexpected exception notifying client')
966
+
967
+ async def _notify_inner(self, touched, height_changed):
968
'''Notify the client about changes to touched addresses (from mempool
969
updates or new blocks) and height.
970
'''
0 commit comments