Skip to content

Commit

Permalink
pipelines: minor fix
Browse files Browse the repository at this point in the history
* Adds: make `InspireAPIPushPipeline._cleanup` staticmethod.

Signed-off-by: Spiros Delviniotis <[email protected]>
  • Loading branch information
spirosdelviniotis authored and david-caro committed Aug 25, 2017
1 parent a64926a commit d10e74d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hepcrawl/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d10e74d

Please sign in to comment.