evolution-client-python/env/lib/python3.10/site-packages/keyring/util/__init__.py
2024-10-30 11:19:09 -03:00

12 lines
302 B
Python

import contextlib
def suppress_exceptions(callables, exceptions=Exception):
"""
yield the results of calling each element of callables, suppressing
any indicated exceptions.
"""
for callable in callables:
with contextlib.suppress(exceptions):
yield callable()