mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 18:22:57 +02:00
lint: enable E722 do not use bare except
This commit is contained in:
@@ -85,7 +85,7 @@ class NodeNetworkLimitedTest(BitcoinTestFramework):
|
||||
self.connect_nodes(0, 2)
|
||||
try:
|
||||
self.sync_blocks([self.nodes[0], self.nodes[2]], timeout=5)
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
# node2 must remain at height 0
|
||||
assert_equal(self.nodes[2].getblockheader(self.nodes[2].getbestblockhash())['height'], 0)
|
||||
|
||||
Reference in New Issue
Block a user