How to ignore an exception in Python

Ignoring an exception caught within a try and except block during a program’s execution does not perform any action and allows the program to continue running from the point where the exception was caught.

Solution for How to ignore an exception in Python : You can use pass to ignore an exception Within a try and except block, use pass in the except clause to indicate no action is required in handling the caught exception.


how-to-ignore-an-exception-in-python