Attributeerror try/except