Catch exception caused by invalid signature

pull/1159/head
Bernhard Mueller 5 years ago
parent f5f0ed0e75
commit f556ae66a2
  1. 12
      mythril/analysis/report.py

@ -165,11 +165,15 @@ class Issue:
for step in self.transaction_sequence["steps"]:
_hash = step["input"][:10]
sig = signatures.get(_hash)
if len(sig) > 0:
step["name"] = sig[0]
else:
try:
sig = signatures.get(_hash)
if len(sig) > 0:
step["name"] = sig[0]
else:
step["name"] = "unknown"
except ValueError:
step["name"] = "unknown"

Loading…
Cancel
Save