mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge branch 'master' into patch-4
This commit is contained in:
@ -11,7 +11,6 @@ from requests.exceptions import HTTPError, ConnectionError, Timeout
|
||||
|
||||
try:
|
||||
from requests.packages.urllib3 import fields
|
||||
|
||||
format_header_param = fields.format_header_param
|
||||
except ImportError:
|
||||
format_header_param = None
|
||||
@ -131,7 +130,6 @@ def _check_result(method_name, result):
|
||||
raise ApiHTTPException(method_name, result)
|
||||
else:
|
||||
raise ApiInvalidJSONException(method_name, result)
|
||||
|
||||
else:
|
||||
if not result_json['ok']:
|
||||
raise ApiTelegramException(method_name, result, result_json)
|
||||
|
Reference in New Issue
Block a user