Use str() for robotparser.

This commit is contained in:
Bastian Kleineidam 2013-04-09 19:36:00 +02:00
parent becc17029a
commit 190ffcd390

View file

@ -289,7 +289,7 @@ def check_robotstxt(url, session):
"""
roboturl = get_roboturl(url)
rp = get_robotstxt_parser(roboturl, session=session)
if not rp.can_fetch(UserAgent, url):
if not rp.can_fetch(UserAgent, str(url)):
raise IOError("%s is disallowed by robots.txt" % url)