Don' print full backtrace on proxied_request failure

This commit is contained in:
norohind 2021-11-11 14:31:27 +03:00
parent 66aeaf8964
commit 54143c6209
Signed by: norohind
GPG Key ID: 01C3BECC26FB59E1

View File

@ -95,7 +95,7 @@ def proxied_request(url: str, method: str = 'get', **kwargs) -> requests.Respons
f'{len(proxiedFapiRequest.content)}')
except requests.exceptions.ConnectionError as e:
logger.exception(f'Proxy {selected_proxy["url"]} is invalid: {str(e)}')
logger.error(f'Proxy {selected_proxy["url"]} is invalid: {str(e.__class__.__name__)}')
selected_proxy['last_try'] = time.time() # because link, lol
continue