1
0

don't use bare except

use "except Exception", or if really needed explicitly "except BaseException"
This commit is contained in:
SomberNight
2023-04-23 01:33:12 +00:00
parent 6848b8f375
commit 312f2641e7
57 changed files with 118 additions and 118 deletions

View File

@@ -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)

View File

@@ -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)