diff options
Diffstat (limited to '')
-rw-r--r-- | crawler/nevrax/pipelines.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawler/nevrax/pipelines.py b/crawler/nevrax/pipelines.py index dbbb782..d9aa4fd 100644 --- a/crawler/nevrax/pipelines.py +++ b/crawler/nevrax/pipelines.py @@ -12,9 +12,8 @@ class NevraxPipeline(object): if page.content_length != item['content_length']: q = Nevrax.update(**item).where(Nevrax.url == item['url']) q.execute() - logging.info("Update item {}".format(page)) + logging.info("Update item {}".format(page)) except Nevrax.DoesNotExist: page = Nevrax.create(**item) logging.info("Create item {}".format(page)) - logging.info('Item {} stored in db'.format(page)) return item |