Skip to content

Commit 9873043

Browse files
authored
Merge pull request ethereum#843 from palango/fix-decode-exception
Catch the correct exception on python 3
2 parents 96342bd + 5f8d9bf commit 9873043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/tools/_solidity.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def solc_parse_output(compiler_output):
9898
# decoding can fail if the compiled contract has unresolved symbols
9999
try:
100100
value['bin'] = decode_hex(value['bin_hex'])
101-
except TypeError:
101+
except (TypeError, ValueError):
102102
pass
103103

104104
for json_data in ('abi', 'devdoc', 'userdoc'):

0 commit comments

Comments
 (0)