don't use bare except
use "except Exception", or if really needed explicitly "except BaseException"
This commit is contained in:
@@ -12,7 +12,7 @@ from electrum.simple_config import SimpleConfig
|
||||
|
||||
try:
|
||||
rawtx = sys.argv[1]
|
||||
except:
|
||||
except Exception:
|
||||
print("usage: txbroadcast rawtx")
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ from electrum.simple_config import SimpleConfig
|
||||
|
||||
try:
|
||||
txid = sys.argv[1]
|
||||
except:
|
||||
except Exception:
|
||||
print("usage: txradar txid")
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user