a clean exit

Dieter Maurer dieter at handshake.de
Sat Jul 24 13:53:14 EDT 2021


jak wrote at 2021-7-23 10:55 +0200:
> ...
>The problem is that sometimes I get an error from the library (python-
>telegram-bot) via logging that my bot has no way of intercepting. The
>error is "connection reset by pear" after which my program is no longer
>called and I need to restart it. Typically this happens when Telegram
>runs an update.

"Connection reset by peer" means that the other end of the connection
(the so called "peer") has closed the connection.
You will need to open a new connection (as the old one can no longer
be used).


More information about the Python-list mailing list