I am really new to Python. I would like to create a logical loop for my python script where when the program stuck it will automatically jump to next line and continue the program.
Here is an example of my code which was a series of different combination of parameter values. I am aware that some combinations of parameter may crash the program that's why I want to have a Error Handling loop to keep the program running.
ini_file="model-simulation fL=0.1,fks=1,fno=1,fnc=1,fr=1,fs=1.ini"; pytopkapi.run(ini_file)
ini_file="model-simulation fL=0.1,fks=6,fno=1,fnc=1,fr=1,fs=1.ini"; pytopkapi.run(ini_file)
ini_file="model-simulation fL=0.1,fks=11,fno=1,fnc=1,fr=1,fs=1.ini"; pytopkapi.run(ini_file)
ini_file="model-simulation fL=0.1,fks=16,fno=1,fnc=1,fr=1,fs=1.ini"; pytopkapi.run(ini_file)
ini_file="model-simulation fL=0.1,fks=21,fno=1,fnc=1,fr=1,fs=1.ini"; pytopkapi.run(ini_file)
ini_file="model-simulation fL=0.1,fks=26,fno=1,fnc=1,fr=1,fs=1.ini"; pytopkapi.run(ini_file)
Sometimes it will have error messages like the following picture which stops the whole program. Could someone please help me out? 