tfix #4184 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ec3346342625149a1be086a8bff8b7b4ac80d3e7 DIR parent c9c7f34ddfdbaafd1fd32b8f741ee166be7dfe2b HTML Author: SomberNight <somber.night@protonmail.com> Date: Tue, 27 Mar 2018 20:17:37 +0200 fix #4184 Diffstat: M lib/blockchain.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/blockchain.py b/lib/blockchain.py t@@ -317,6 +317,8 @@ class Blockchain(util.PrintError): return bitsN << 24 | bitsBase def can_connect(self, header, check_height=True): + if header is None: + return False height = header['block_height'] if check_height and self.height() != height - 1: #self.print_error("cannot connect at height", height)