Skip to content

Commit

Permalink
MissingSchema fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ducu committed Jun 1, 2014
1 parent 6744c44 commit 1281c49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extraction/__init__.py
Expand Up @@ -183,6 +183,8 @@ def cleanup_url(self, value_url, source_url, mark):
url = value_url
else:
url = urlparse.urljoin(source_url, value_url)
if url.startswith('//'):
url = 'http:' + url # MissingSchema fix
return url + mark

def cleanup(self, results, source_url=None, mark=""):
Expand Down

0 comments on commit 1281c49

Please sign in to comment.