def EVAL_FAILURE(code):
    return type(code) == types.StringType and code.startswith("IDC_FAILURE: ")
Check the result of Eval() for evaluation failures
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/EVAL_FAILURE