Fix robotstxt cache miss stats.

This commit is contained in:
Bastian Kleineidam 2012-09-21 21:12:28 +02:00
parent f6b007f757
commit fba465e8e8

View file

@ -47,7 +47,7 @@ class RobotsTxt (object):
self.hits += 1
rp = self.cache[roboturl]
else:
self.misses = 1
self.misses += 1
rp = robotparser2.RobotFileParser(proxy=proxy, user=user,
password=password)
rp.set_url(roboturl)