A
A
Artem2017-07-12 02:26:54
Python
Artem, 2017-07-12 02:26:54

Why does Python script exit with exit code -1?

Hello!
A long-running python script hangs and exits with exit code -1
The script must respond to certain events received from the Long Poll server. For about the first hour everything works as it should. Messages come in and everything is processed normally. But then the script just hangs. I can’t track this moment exactly, but since a certain time nothing has happened. Not even an error occurs. I tried to run it in debug mode in PyCharm, after a while it also hung up and when I tried to set a breakpoint, I displayed the following message: I
Process finished with exit code -1
use while True to run the loop endlessly , maybe this is the problem? Anything with overflow? But why doesn't it throw an error?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question