Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ddc committed Dec 15, 2019
1 parent 16c379f commit 39c56b6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main_src.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ def _update_arcdps(self):

try:
req_d3d9_md5 = ""
req = requests.get(md5sum_url, stream=True, timeout=3)
req = requests.get(md5sum_url, stream=True, timeout=1)
if req.status_code == 200:
req_d3d9_md5 = str(req.text.split()[0])
else:
Expand Down Expand Up @@ -768,7 +768,7 @@ def _set_arcdps_tab(self):
self.qtObj.arcps_url_textBrowser.setHtml(arcdps_ref)

try:
response = requests.get(arcdps_url)
response = requests.get(arcdps_url, stream=True, timeout=1)
if response.status_code != 200:
self.log.error(messages.arcdps_error_dl)
else:
Expand All @@ -785,7 +785,8 @@ def _set_arcdps_tab(self):

self.qtObj.arcdps_webpage_textEdit.setPlainText(changes.strip())
self.qtObj.arcdps_current_version_label.setText(version.strip())
except requests.exceptions.ConnectionError as e:
# except requests.exceptions.ConnectionError as e:
except Exception as e:
self.log.error(f"{messages.arcdps_unreacheable} {e}")
utilities.show_message_window("error", "ERROR", messages.arcdps_unreacheable)
self.qtObj.arcdps_webpage_textEdit.setPlainText(messages.arcdps_unreacheable)
Expand Down

0 comments on commit 39c56b6

Please sign in to comment.