[wwwsearch-commits] r41742 - wwwsearch/mechanize/trunk/mechanize

jjlee at codespeak.net jjlee at codespeak.net
Sat Mar 31 01:29:46 CEST 2007


Author: jjlee
Date: Sat Mar 31 01:29:28 2007
New Revision: 41742

Modified:
   wwwsearch/mechanize/trunk/mechanize/_http.py
Log:
Note poor choice of exception

Modified: wwwsearch/mechanize/trunk/mechanize/_http.py
==============================================================================
--- wwwsearch/mechanize/trunk/mechanize/_http.py	(original)
+++ wwwsearch/mechanize/trunk/mechanize/_http.py	Sat Mar 31 01:29:28 2007
@@ -427,6 +427,7 @@
             if self.rfp.can_fetch(ua, request.get_full_url()):
                 return request
             else:
+                # XXX This should really have raised URLError.  Too late now...
                 msg = "request disallowed by robots.txt"
                 raise RobotExclusionError(
                     request,


More information about the wwwsearch-commits mailing list