Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "/usr/local/lib/python3.6/dist-packages/telegram/utils/request.py", line 174, in _request_wrapper
  3. resp = self._con_pool.request(*args, **kwargs)
  4. File "/usr/local/lib/python3.6/dist-packages/telegram/vendor/ptb_urllib3/urllib3/request.py", line 70, in request
  5. **urlopen_kw)
  6. File "/usr/local/lib/python3.6/dist-packages/telegram/vendor/ptb_urllib3/urllib3/request.py", line 148, in request_encode_body
  7. return self.urlopen(method, url, **extra_kw)
  8. File "/usr/local/lib/python3.6/dist-packages/telegram/vendor/ptb_urllib3/urllib3/poolmanager.py", line 244, in urlopen
  9. response = conn.urlopen(method, u.request_uri, **kw)
  10. File "/usr/local/lib/python3.6/dist-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 666, in urlopen
  11. _stacktrace=sys.exc_info()[2])
  12. File "/usr/local/lib/python3.6/dist-packages/telegram/vendor/ptb_urllib3/urllib3/util/retry.py", line 347, in increment
  13. raise six.reraise(type(error), error, _stacktrace)
  14. File "/usr/local/lib/python3.6/dist-packages/telegram/vendor/ptb_urllib3/urllib3/packages/six.py", line 685, in reraise
  15. raise value.with_traceback(tb)
  16. File "/usr/local/lib/python3.6/dist-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 617, in urlopen
  17. chunked=chunked)
  18. File "/usr/local/lib/python3.6/dist-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 390, in _make_request
  19. conn.request(method, url, **httplib_request_kw)
  20. File "/usr/lib/python3.6/http/client.py", line 1239, in request
  21. self._send_request(method, url, body, headers, encode_chunked)
  22. File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request
  23. self.endheaders(body, encode_chunked=encode_chunked)
  24. File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders
  25. self._send_output(message_body, encode_chunked=encode_chunked)
  26. File "/usr/lib/python3.6/http/client.py", line 1065, in _send_output
  27. self.send(chunk)
  28. File "/usr/lib/python3.6/http/client.py", line 986, in send
  29. self.sock.sendall(data)
  30. File "/usr/lib/python3.6/ssl.py", line 965, in sendall
  31. v = self.send(data[count:])
  32. File "/usr/lib/python3.6/ssl.py", line 935, in send
  33. return self._sslobj.write(data)
  34. File "/usr/lib/python3.6/ssl.py", line 636, in write
  35. return self._sslobj.write(data)
  36. telegram.vendor.ptb_urllib3.urllib3.exceptions.ProtocolError: ('Connection aborted.', timeout('The write operation timed out',))
  37.  
  38. During handling of the above exception, another exception occurred:
  39.  
  40. Traceback (most recent call last):
  41. File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
  42. self.run()
  43. File "/usr/lib/python3.6/threading.py", line 1182, in run
  44. self.function(*self.args, **self.kwargs)
  45. File "/home/andreychik/college_bot/cron.py", line 35, in check_zamenas
  46. notify_all()
  47. File "/home/andreychik/college_bot/cron.py", line 14, in notify_all
  48. return config.bot.send_photo(chat_id=config.chat_id, photo=open('Zameni.jpg', 'rb'), caption="Новый список замен!")
  49. File "/usr/local/lib/python3.6/dist-packages/telegram/bot.py", line 57, in decorator
  50. result = func(self, *args, **kwargs)
  51. File "/usr/local/lib/python3.6/dist-packages/telegram/bot.py", line 69, in decorator
  52. return self._message_wrapper(url, data, *args, **kwargs)
  53. File "/usr/local/lib/python3.6/dist-packages/telegram/bot.py", line 175, in _message_wrapper
  54. result = self._request.post(url, data, timeout=kwargs.get('timeout'))
  55. File "/usr/local/lib/python3.6/dist-packages/telegram/utils/request.py", line 248, in post
  56. 'POST', url, body=data.to_form(), headers=data.headers, **urlopen_kwargs)
  57. File "/usr/local/lib/python3.6/dist-packages/telegram/utils/request.py", line 180, in _request_wrapper
  58. raise NetworkError('urllib3 HTTPError {0}'.format(error))
  59. telegram.error.NetworkError: urllib3 HTTPError ('Connection aborted.', timeout('The write operation timed out',))
  60.  
  61. [<telegram.message.Message object at 0x7f7c76029ef0>, <telegram.message.Message object at 0x7f7c7601d0b8>]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement