fix more bare excepts
This commit is contained in:
@@ -85,7 +85,7 @@ def main(address):
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
address = sys.argv[1]
|
||||
except:
|
||||
except Exception:
|
||||
print "usage: get_balance <bitcoin_address>"
|
||||
sys.exit(1)
|
||||
main(address)
|
||||
|
||||
@@ -5,7 +5,7 @@ from electrum import Network
|
||||
|
||||
try:
|
||||
addr = sys.argv[1]
|
||||
except:
|
||||
except Exception:
|
||||
print "usage: get_history <bitcoin_address>"
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ def process_request(amount, confirmations, expires_in, password):
|
||||
amount = float(amount)
|
||||
confirmations = int(confirmations)
|
||||
expires_in = float(expires_in)
|
||||
except:
|
||||
except Exception:
|
||||
return "incorrect parameters"
|
||||
|
||||
account = wallet.accounts["m/0'/0"]
|
||||
|
||||
@@ -4,7 +4,7 @@ import sys, time, electrum
|
||||
|
||||
try:
|
||||
addr = sys.argv[1]
|
||||
except:
|
||||
except Exception:
|
||||
print "usage: watch_address <bitcoin_address>"
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user