Change exception into a warning