def wrapper(*args, **kwargs):
    try:
        callable(*args, **kwargs)
    except BaseException:
        self.exception = sys.exc_info()
def wrapper(*args, **kwargs):
    try:
        callable(*args, **kwargs)
    except BaseException:
        self.exception = sys.exc_info()