def discard(self, header: str) -> None:
        """Like :meth:`remove` but ignores errors.

        :param header: the header to be discarded.
        """
        try:
            self.remove(header)
        except KeyError:
            pass
Like :meth:`remove` but ignores errors.

        :param header: the header to be discarded.
        
src/werkzeug/datastructures/structures.py