Ignore error when pattern not found