Skip to content

Commit

Permalink
Removed obligatory link score. Default score of 0 assumed
Browse files Browse the repository at this point in the history
  • Loading branch information
plafl committed Nov 16, 2015
1 parent 18ffb3f commit b14bb32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aduana/frontera.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def request_error(self, page, error):
def page_crawled(self, response, links):
cp = aduana.CrawledPage(
response.url,
[(link.url, link.meta['scrapy_meta']['score']) for link in links])
[(link.url, link.meta['scrapy_meta'].get('score', 0.0)) for link in links])

try:
cp.score = response.meta['scrapy_meta']['score']
Expand Down

0 comments on commit b14bb32

Please sign in to comment.