We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3503455 commit bec99c1Copy full SHA for bec99c1
pyinjective/async_client.py
@@ -173,8 +173,11 @@ async def close_chain_channel(self):
173
self.cron.stop()
174
175
async def sync_timeout_height(self):
176
- block = await self.get_latest_block()
177
- self.timeout_height = block.block.header.height + DEFAULT_TIMEOUTHEIGHT
+ try:
+ block = await self.get_latest_block()
178
+ self.timeout_height = block.block.header.height + DEFAULT_TIMEOUTHEIGHT
179
+ except Exception as e:
180
+ self.timeout_height = 0
181
182
# cookie helper methods
183
async def fetch_cookie(self, type):
0 commit comments