def METHOD_NAME():
    if Promise.unhandled_exceptions:
        for exctype, value, tb in Promise.unhandled_exceptions:
            if value:
                raise value.with_traceback(tb)
            # traceback.print_exception(exctype, value, tb)