From 37932b863ede04da2cb2a3d5705d22e38fe4630b Mon Sep 17 00:00:00 2001 From: Spiros Delviniotis Date: Fri, 18 Aug 2017 15:09:04 +0200 Subject: [PATCH] pipelines: minor fix * Adds: make `InspireAPIPushPipeline._cleanup` staticmethod. Signed-off-by: Spiros Delviniotis --- hepcrawl/pipelines.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hepcrawl/pipelines.py b/hepcrawl/pipelines.py index 4ff2b3c9..7a51e4cb 100644 --- a/hepcrawl/pipelines.py +++ b/hepcrawl/pipelines.py @@ -125,7 +125,8 @@ def _prepare_payload(self, spider): ] return payload - def _cleanup(self, spider): + @staticmethod + def _cleanup(spider): """Run cleanup.""" # Cleanup errors if 'errors' in spider.state: