How to properly ignore exceptions
When you just want to do a try-except without handling the exception, how do you do it in Python?
When you just want to do a try-except without handling the exception, how do you do it in Python?
This is some code that is behaving peculiarly. This is a simplified version of the behavior that I’ve written. This will still demonstrate the weird behavior and I had some specific questions on why this is occurring.
I have a loop starting with for i in range(0, 100). Normally it runs correctly, but sometimes it fails due to network conditions. Currently I have it set so that on failure, it will continue in the except clause (continue on to the next number for i).
My python try/except loop does not seem to trigger a keyboard interrupt when Ctrl + C is pressed while debugging my code in pycharm. My code look like this: