H
H
Herben2021-11-03 14:52:32
Python
Herben, 2021-11-03 14:52:32

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

1 answer(s)
P
Puma Thailand, 2021-11-03
@Herben

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 question

Ask a Question

731 491 924 answers to any question