mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-26 14:00:29 +01:00
lint: enable E722 do not use bare except
This commit is contained in:
@@ -16,7 +16,7 @@ def unidirectional_node_sync_via_rpc(node_src, node_dest):
|
||||
try:
|
||||
assert len(node_dest.getblock(blockhash, False)) > 0
|
||||
break
|
||||
except:
|
||||
except Exception:
|
||||
blocks_to_copy.append(blockhash)
|
||||
blockhash = node_src.getblockheader(blockhash, True)['previousblockhash']
|
||||
blocks_to_copy.reverse()
|
||||
|
||||
Reference in New Issue
Block a user