From c3bf73d821c93359d9c2f4e6964c16dc2f74286b Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Fri, 4 May 2018 21:09:54 -0500 Subject: [PATCH] fixed thread crash in highfailurerate check in communicator --- onionr/communicator.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/onionr/communicator.py b/onionr/communicator.py index 40d8c390..aeb0e90b 100755 --- a/onionr/communicator.py +++ b/onionr/communicator.py @@ -603,8 +603,11 @@ class OnionrCommunicate: peerTryCount = 0 for i in peerList: - if self.peerData[i]['failCount'] >= self.highFailureAmount: - continue + try: + if self.peerData[i]['failCount'] >= self.highFailureAmount: + continue + except KeyError: + pass if peerTryCount >= peerTries: break