added return false for errors on performget
This commit is contained in:
parent
b41e51937e
commit
4966925b14
@ -80,7 +80,10 @@ class OnionrCommunicate:
|
|||||||
url = 'http://' + peer + '/public/?action=' + action
|
url = 'http://' + peer + '/public/?action=' + action
|
||||||
if data != None:
|
if data != None:
|
||||||
url = url + '&data=' + data
|
url = url + '&data=' + data
|
||||||
r = requests.get(url, headers=headers, proxies=proxies)
|
try:
|
||||||
|
r = requests.get(url, headers=headers, proxies=proxies)
|
||||||
|
except requests.exceptions.RequestException:
|
||||||
|
return False
|
||||||
return r.text
|
return r.text
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user