PaiGram/utils/decorator.py

12 lines
148 B
Python
Raw Normal View History

from contextlib import contextmanager
__all__ = ["do_nothing"]
@contextmanager
def do_nothing():
try:
yield
finally:
...