Catch ValueError, too.