changed exception raise to log warning