Ask Your Question

Revision history [back]

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