Rerun script if it terminated suddenly
Answered
Recently, my python script started getting terminated suddenly giving some error.
I am using try-catch block, but it seems unable to catch the exception, which I doubt is related to multithreading.
The script just needs to run continuously and ignore errors. the code looks like this:
while 1:
try:
# do some stuff
except:
pass
I am in the process of debugging the issue, but till I find the underlying cause. is there a way to instruct PyCharm to simply rerun the script when it stops abruptly?
Please sign in to leave a comment.
Unfortunately, there is no such feature at the moment.
Please feel free to submit a feature request about it to our issue tracker using the link https://youtrack.jetbrains.com/issues/PY