If you are using a for loop and you want to know what the error is when it occurs without stopping the for loop, use try and except.
Remember to add Exception as e after except statement to print the error like above.
Exception as e
except