Skip to content

Commit

Permalink
Merge pull request #11 from Maplecroft/master
Browse files Browse the repository at this point in the history
Default to 'en' on static page crawl
  • Loading branch information
notanumber committed Dec 13, 2012
2 parents d3b75c7 + 1078c28 commit 2ae6c31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def handle(self, *args, **options):
page.description = meta.get('content', '')
else:
page.description = ''
page.language = soup.html.get('lang')
page.language = soup.html.get('lang', 'en')
page.content = soup.prettify()
page.save()
count += 1
Expand Down

0 comments on commit 2ae6c31

Please sign in to comment.