15 lines
308 B
Python
15 lines
308 B
Python
from __future__ import (
|
|
absolute_import, division, print_function, with_statement
|
|
)
|
|
from contextlib import contextmanager
|
|
from gevent import GreenletExit
|
|
|
|
|
|
@contextmanager
|
|
def ignored(*exceptions):
|
|
try:
|
|
yield
|
|
except GreenletExit as e:
|
|
raise e
|
|
except exceptions:
|
|
pass
|