Catch exception caused by invalid signature

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

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

Loading…
Cancel
Save