Skip to content

Commit 3532aff

Browse files
committed
chore: add debug logs in latest block exception
1 parent 232bce0 commit 3532aff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyinjective/async_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ async def sync_timeout_height(self):
176176
try:
177177
block = await self.get_latest_block()
178178
self.timeout_height = block.block.header.height + DEFAULT_TIMEOUTHEIGHT
179-
except Exception:
179+
except Exception as e:
180+
logging.debug("error while fetching latest block, setting timeout height to 0:{}".format(e))
180181
self.timeout_height = 0
181182

182183
# cookie helper methods

0 commit comments

Comments
 (0)