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: