upd
This commit is contained in:
parent
a090b00680
commit
eeaf3c36ac
10
rbmd.py
10
rbmd.py
@ -180,12 +180,10 @@ def action(name, method, data=None):
|
||||
except:
|
||||
res = 'connection can\'t be established'
|
||||
elif method == 'post':
|
||||
res = requests.post(url, data).content
|
||||
logging.info(res)
|
||||
# try:
|
||||
# res = requests.post(url, data).content
|
||||
# except:
|
||||
# res = 'connection can\'t be established'
|
||||
try:
|
||||
res = requests.post(url, data, timeout=10).content
|
||||
except:
|
||||
res = 'connection can\'t be established'
|
||||
return res
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user