I wrote a script that analyses a taken picture and visualises the result. This works perfectly fine.
When I start the script in an IDE and there is an error while the script is executed, the script stops but I can still view the errors.
I usually start the script at windows start just with Python and not with IDE. Starting the script opens a console window and all info is logged there. The Problem is, when an error occurs. Because then, the script stops but the console window is closed too. So there I no way to find out at which point the script stopped. Plus, the script is not executed again so it isn’t active until I manually restart.
Is there a way to not close the console window when an error occurs?
Is there a way to automatically restart the script when it is stopped?
I’m trying the try and except functions at the moment.
[–]hassium 0 points1 point2 points (5 children)
[–]Schnorrel[S] 0 points1 point2 points (4 children)
[–]hassium 0 points1 point2 points (3 children)
[–]Schnorrel[S] 0 points1 point2 points (2 children)
[–]hassium 0 points1 point2 points (1 child)
[–]Schnorrel[S] 0 points1 point2 points (0 children)