Start without knownnodes if JSON got corrupted

This commit is contained in:
Dmitri Bogomolov 2018-05-07 13:15:58 +03:00
parent 5e72fdba17
commit b499e1bd22
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
1 changed files with 1 additions and 1 deletions

View File

@ -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)