Formatting

This commit is contained in:
shortcutme 2019-01-20 16:26:17 +01:00
parent 6ac1960c47
commit 33cf30a07b
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

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