eval to getattr, handling parse error