From d8ae44f9eeb33402e2599b9d4b6e994faa2f0273 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Thu, 9 Feb 2017 21:04:07 +0100 Subject: [PATCH] Obsolete imports, missing exception type --- src/bitmessageqt/__init__.py | 1 - src/class_outgoingSynSender.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index c9c2166f..c44339f8 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -58,7 +58,6 @@ import time import os import hashlib from pyelliptic.openssl import OpenSSL -import pickle import platform import textwrap import debug diff --git a/src/class_outgoingSynSender.py b/src/class_outgoingSynSender.py index 5045d43b..91cd660a 100644 --- a/src/class_outgoingSynSender.py +++ b/src/class_outgoingSynSender.py @@ -133,7 +133,7 @@ class outgoingSynSender(threading.Thread, StoppableThread): with knownnodes.knownNodesLock: try: del knownnodes.knownNodes[self.streamNumber][peer] - except: + except KeyError: pass logger.debug('deleting ' + str(peer) + ' from knownnodes.knownNodes because it caused a socks.socksocket exception. We must not be 64-bit compatible.') continue