Skip to content

Commit

Permalink
* Fix connection timed out when checking for updates and -D option ha…
Browse files Browse the repository at this point in the history
…s not been informed.
  • Loading branch information
joaomatosf committed Oct 25, 2016
1 parent f7741f3 commit f0a9cfd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ def check_updates():
url = 'http:https://joaomatosf.com/rnp/releases.txt'
print(BLUE + " * Checking for updates in: %s **\n" % url + ENDC)
header = {"User-Agent": "Checking for updates"}
r = pool.request('GET', url, redirect=False, headers=header)
try:
r = pool.request('GET', url, redirect=False, headers=header)
except:
print(RED + " * Error: could not check for updates ...\n" + ENDC)
return False

if r.status != 200:
print(RED + " * Error: could not check for updates ...\n" + ENDC)
Expand Down

0 comments on commit f0a9cfd

Please sign in to comment.