Skip to content

Commit

Permalink
[Piconsupdater] timeout for internet-access added
Browse files Browse the repository at this point in the history
  • Loading branch information
MrServo committed Apr 4, 2024
1 parent 830fbb7 commit 02dfdc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PiconsUpdater/src/DownloadJob.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def stop(self):
def downloadPage(self, link, file, success, fail=None):
link = link.encode('ascii', 'xmlcharrefreplace').decode().replace(' ', '%20').replace('\n', '').encode('utf-8')
try:
response = get(link)
response = get(link, timeout=(3.05, 6))
content = response.content
response.raise_for_status()
with open(file, "wb") as f:
Expand Down

0 comments on commit 02dfdc1

Please sign in to comment.