code: def filter_errors(errors, select=None, ignore=None, **params):
      
      select = select or []
      ignore = ignore or []
  
      for e in errors:
          for s in select:
              if e.number.startswith(s):
                  yield e
                  break
          else:
              for s in ignore:
                  if e.number.startswith(s):
                      break
              else:
                  yield e
docs: Filter errors by select and ignore options.
  
      :return bool: