First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Enclosing the statement with a Try Catch block should solve this issue, but you need to only enclose the lines that cause the issue and then find an appropriate way for the rest of your code to work with the fact that you are now "skipping" these codes when they have errors
try:
# enter problematic code here
except:
# enter the code of what to do when the issue happens here
#(maybe a "warning" print, or assign dummy values to the variables)
Hope this solves your issue