Remove all uses of "except:"
This commit is contained in:
parent
76b6899cf2
commit
551c04a3bc
@ -209,7 +209,7 @@ class Script(object):
|
||||
n += dlen
|
||||
|
||||
ops.append(op)
|
||||
except:
|
||||
except Exception:
|
||||
# Truncated script; e.g. tx_hash
|
||||
# ebc9fa1196a59e192352d76c0f6e73167046b9d37b8302b6bb6968dfd279b767
|
||||
raise ScriptError('truncated script')
|
||||
|
||||
2
query.py
2
query.py
@ -50,7 +50,7 @@ def main():
|
||||
try:
|
||||
limit = int(sys.argv[argc])
|
||||
argc += 1
|
||||
except:
|
||||
except Exception:
|
||||
limit = 10
|
||||
for addr in sys.argv[argc:]:
|
||||
print('Address: ', addr)
|
||||
|
||||
@ -83,7 +83,7 @@ class Env(LoggedClass):
|
||||
return default
|
||||
try:
|
||||
return int(value)
|
||||
except:
|
||||
except Exception:
|
||||
raise self.Error('cannot convert envvar {} value {} to an integer'
|
||||
.format(envvar, value))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user