Python Ignore Exception

August 1, 2019
try:
    raise ValueError()
except Exception:
    pass

or

from contextlib import suppress

with suppress(Exception):
    raise ValueError()
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.