From b499e1bd2258ca33a469b67642baf4dc01f36d3d Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Mon, 7 May 2018 13:15:58 +0300 Subject: [PATCH] Start without knownnodes if JSON got corrupted --- src/knownnodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/knownnodes.py b/src/knownnodes.py index 1b2d5d46..5d14c8dc 100644 --- a/src/knownnodes.py +++ b/src/knownnodes.py @@ -79,7 +79,7 @@ def readKnownNodes(): except ValueError: source.seek(0) pickle_deserialize_old_knownnodes(source) - except (IOError, OSError): + except (IOError, OSError, KeyError): logger.debug( 'Failed to read nodes from knownnodes.dat', exc_info=True)