From 3040ae7fbc7efcf4c4ca41def06cb0b31e65533e Mon Sep 17 00:00:00 2001 From: rodgerjohnson Date: Fri, 30 Aug 2024 21:42:59 +0900 Subject: [PATCH] Lint changes --- src/collectors.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/collectors.py b/src/collectors.py index 8fa2b3f..dd838eb 100644 --- a/src/collectors.py +++ b/src/collectors.py @@ -427,13 +427,12 @@ def alive(self): self.client_version_payload) is not None def block_height(self): - """Runs a cached query and returns blockheight after converting hex string value to an int""" + """Cached query and returns blockheight after converting hex string value to an int""" result = self.interface.cached_json_rpc_post(self.block_height_payload) if result and isinstance(result, str) and result.startswith('0x'): return int(result, 16) - else: - raise ValueError(f"Invalid block height result: {result}") + raise ValueError(f"Invalid block height result: {result}") def client_version(self): """Runs a cached query to return client version."""