lint: enable E722 do not use bare except
This commit is contained in:
1 parent
73b61717a9
commit
61bb4e783b
10 files changed
+11
-10
No files matched your search
@@ -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