Code:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pyspv/network.py", line 980, in cmd_version
self.peer_last_block = struct.unpack("<L", payload)[0]
struct.error: unpack requires a buffer of 4 bytes
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pyspv/network.py", line 565, in run
self.step()
File "/usr/local/lib/python3.6/dist-packages/pyspv/network.py", line 602, in step
self.handle_incoming_data()
File "/usr/local/lib/python3.6/dist-packages/pyspv/network.py", line 673, in handle_incoming_data
self.handle_command(command, payload)
File "/usr/local/lib/python3.6/dist-packages/pyspv/network.py", line 705, in handle_command
cmd(payload)
File "/usr/local/lib/python3.6/dist-packages/pyspv/network.py", line 984, in cmd_version
self.manager.peer_is_bad(self.peer_address)
File "/usr/local/lib/python3.6/dist-packages/pyspv/network.py", line 336, in peer_is_bad
self.delete_peer_address(peer_address)
File "/usr/local/lib/python3.6/dist-packages/pyspv/network.py", line 225, in delete_peer_address
self.peer_addresses[peer_address]['index'] = old['index']
KeyError: ('54.252.207.160', 18333)