feat: add timeouts to all requests requests
This commit is contained in:
parent
2498f408c8
commit
fff38fa994
7 changed files with 10 additions and 7 deletions
|
@ -20,7 +20,8 @@ class BlockBridgeDnscAutomation(BlockBridgeAutomation):
|
|||
def fetch(self) -> None:
|
||||
response = requests.get(DOWNLOAD_URL,
|
||||
headers={"User-Agent": "Mozilla/5.0 (Windows NT x.y; Win64; x64; rv:10.0) "
|
||||
"Gecko/20100101 Firefox/10.0"})
|
||||
"Gecko/20100101 Firefox/10.0"},
|
||||
timeout=60)
|
||||
self._content = BytesIO(response.content)
|
||||
|
||||
def parse(self) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue