From f19320d46caeddd70a2090078c691937d8b6b4a6 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 1590d697..fb3a3951 100644 --- a/hepcrawl/pipelines.py +++ b/hepcrawl/pipelines.py @@ -134,7 +134,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: