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

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)