Skip to content

Commit

Permalink
Merge pull request #774 from MrServo/master
Browse files Browse the repository at this point in the history
[Piconsupdater] timeout for internet-access added
  • Loading branch information
mike-99 authored Apr 4, 2024
2 parents 830fbb7 + 02dfdc1 commit 5ed8f60
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 5ed8f60

Please sign in to comment.