ConfigTools & Encription manager
This commit is contained in:
11
lib/keyring/util/__init__.py
Normal file
11
lib/keyring/util/__init__.py
Normal file
@@ -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