remove throwing exception when no attribute