Answer the question
In order to leave comments, you need to log in
How can I make the script restart after an error?
There is a VK bot in python, which during the day due to connection problems (troubles in VK) falls, googled the way to loop through while True, try and except, put the active part in it (that is, without libraries, def, class, etc. .e) and he started complaining about the save function to the database, put absolutely the entire script (except for libraries) in this loop and now it gives out sh: syntax error: unterminated quoted string
So, are there any commands for python that would solve this problem or ways through third-party programs on android (I run it on it)?
Answer the question
In order to leave comments, you need to log in
So there is a try exception for this, the error in the shell is clearly not simple
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question