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: