lint: enable E722 do not use bare except

This commit is contained in:
Leonardo Lazzaro committed 2023-02-18 11:24:09 +00:00
1 parent 73b61717a9
commit 61bb4e783b
10 files changed
+11 -10

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ class ChainstateWriteCrashTest(BitcoinTestFramework):
self.nodes[node_index].waitforblock(expected_tip)
utxo_hash = self.nodes[node_index].gettxoutsetinfo()['hash_serialized_2']
return utxo_hash
except:
except Exception:
# An exception here should mean the node is about to crash.
# If bitcoind exits, then try again. wait_for_node_exit()
# should raise an exception if bitcoind doesn't exit.