Make sure the hashfield response is correct

This commit is contained in:
shortcutme 2017-10-04 17:25:33 +02:00
parent b41570b663
commit bc9bddf918
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -278,7 +278,7 @@ class Peer(object):
self.time_hashfield = time.time()
res = self.request("getHashfield", {"site": self.site.address})
if not res or "error" in res:
if not res or "error" in res or not "hashfield_raw" in res:
return False
self.hashfield.replaceFromString(res["hashfield_raw"])