From 38abd838ca9dfd99d8abfd05b6cc4287af626c05 Mon Sep 17 00:00:00 2001 From: Matti Remes Date: Sat, 3 Sep 2016 17:36:47 +0300 Subject: [PATCH 1/2] Update exceptions.rst There are namely no constructors in classes in Python but an ``__init__`` method instead. --- docs/topics/exceptions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/exceptions.rst b/docs/topics/exceptions.rst index 9f8d16d84..2dc4c3b45 100644 --- a/docs/topics/exceptions.rst +++ b/docs/topics/exceptions.rst @@ -60,7 +60,7 @@ remain disabled. Those components include: * Downloader middlewares * Spider middlewares -The exception must be raised in the component constructor. +The exception must be raised in the component's ``__init__`` method NotSupported ------------ From e84d37a3fd3a0d4034cee1322efe38d01491f747 Mon Sep 17 00:00:00 2001 From: Matti Remes Date: Sun, 4 Sep 2016 21:50:46 +0300 Subject: [PATCH 2/2] Update exceptions.rst Added the missing dot. --- docs/topics/exceptions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/exceptions.rst b/docs/topics/exceptions.rst index 2dc4c3b45..cc02369d4 100644 --- a/docs/topics/exceptions.rst +++ b/docs/topics/exceptions.rst @@ -60,7 +60,7 @@ remain disabled. Those components include: * Downloader middlewares * Spider middlewares -The exception must be raised in the component's ``__init__`` method +The exception must be raised in the component's ``__init__`` method. NotSupported ------------