mirror of
https://github.com/EvolutionAPI/evolution-client-python.git
synced 2026-02-04 13:56:23 -06:00
initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user