@logger.catch
for async task and catch __all__
from module.
#801
Labels
question
Further information is requested
I would love to have comments on this post.
It is also interesting to know the following: if it is not possible to catch exceptions with the
@logger.catch
decorator for asynchronous functions used only as tasks, except by explicitly specifying this decorator above the declaration of each such function, then is there any possibility, say, to declare isolate a set of such functions in a separate module through__all__ = []
, and then, when importing into__init__.py
, loop through them and force them to be decorated? For example:The text was updated successfully, but these errors were encountered: