1
0

don't use bare except

This commit is contained in:
Bryan Stitt
2013-11-09 21:23:57 -08:00
parent f0eb0eccde
commit 225d8b83a3
9 changed files with 31 additions and 31 deletions

View File

@@ -298,7 +298,7 @@ def match_decoded(decoded, to_match):
def get_address_from_input_script(bytes):
try:
decoded = [ x for x in script_GetOp(bytes) ]
except:
except Exception:
# coinbase transactions raise an exception
print_error("cannot find address in input script", bytes.encode('hex'))
return [], [], "(None)"