don't use bare except
use "except Exception", or if really needed explicitly "except BaseException"
This commit is contained in:
@@ -169,7 +169,7 @@ class SPV(NetworkJobOnDefaultServer):
|
||||
tx = Transaction(raw_tx)
|
||||
try:
|
||||
tx.deserialize()
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
else:
|
||||
raise InnerNodeOfSpvProofIsValidTx()
|
||||
|
||||
Reference in New Issue
Block a user