Use hasattr instead of except in fieldgenerator so errors during field generation don't get masked