Skip to content

Commit 4b3fa58

Browse files
committed
hacky try number 3
1 parent 30a8200 commit 4b3fa58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crytic_compile/platform/etherscan.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ def compile(self, crytic_compile: "CryticCompile", **kwargs: str) -> None:
257257
contract_name: str = ""
258258

259259
if not only_bytecode:
260+
if "polygon" in etherscan_url:
261+
etherscan_url = urllib.request.Request(etherscan_url,headers={"User-Agent": "Mozilla/5.0"})
260262
with urllib.request.urlopen(etherscan_url) as response:
261263
html = response.read()
262264

0 commit comments

Comments
 (0)