Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Add errors parameter in documentation.

maranqz560c335c0782
diff --git a/docs/topics/exporters.rst b/docs/topics/exporters.rst
index 11ef5b2a6..3f8906326 100644
--- a/docs/topics/exporters.rst
+++ b/docs/topics/exporters.rst
@@ -292,7 +292,7 @@ XmlItemExporter
CsvItemExporter
---------------
-.. class:: CsvItemExporter(file, include_headers_line=True, join_multivalued=',', **kwargs)
+.. class:: CsvItemExporter(file, include_headers_line=True, join_multivalued=',', errors=None, **kwargs)
Exports items in CSV format to the given file-like object. If the
:attr:`fields_to_export` attribute is set, it will be used to define the
@@ -311,6 +311,10 @@ CsvItemExporter
multi-valued fields, if found.
:type include_headers_line: str
+ :param errors: The optional string that specifies how encoding and decoding errors are to be handled.
+ For more information see `documentation <https://docs.python.org/3/library/io.html#io.TextIOWrapper>`_.
+ :type errors: str
+
The additional keyword arguments of this ``__init__`` method are passed to the
:class:`BaseItemExporter` ``__init__`` method, and the leftover arguments to the
:func:`csv.writer` function, so you can use any :func:`csv.writer` function