[Checkins] SVN: lovely.buildouthttp/trunk/ Fixed AttributeError if result can't be retrieved.

Radim Novotny novotny.radim at gmail.com
Sat Feb 21 04:09:09 EST 2009


Log message for revision 96876:
  Fixed AttributeError if result can't be retrieved.
  

Changed:
  U   lovely.buildouthttp/trunk/CHANGES.txt
  U   lovely.buildouthttp/trunk/src/lovely/buildouthttp/buildouthttp.py

-=-
Modified: lovely.buildouthttp/trunk/CHANGES.txt
===================================================================
--- lovely.buildouthttp/trunk/CHANGES.txt	2009-02-21 09:08:08 UTC (rev 96875)
+++ lovely.buildouthttp/trunk/CHANGES.txt	2009-02-21 09:09:09 UTC (rev 96876)
@@ -2,6 +2,10 @@
 Changes for lovely.buildouthttp
 ===============================
 
+- fixed error when url can't be retrieved:
+  AttributeError: 'NoneType' object has no attribute 'url'
+  [naro]
+
 2008/03/22 0.2.2:
 =================
 - added try/except around the retry section

Modified: lovely.buildouthttp/trunk/src/lovely/buildouthttp/buildouthttp.py
===================================================================
--- lovely.buildouthttp/trunk/src/lovely/buildouthttp/buildouthttp.py	2009-02-21 09:08:08 UTC (rev 96875)
+++ lovely.buildouthttp/trunk/src/lovely/buildouthttp/buildouthttp.py	2009-02-21 09:09:09 UTC (rev 96876)
@@ -38,7 +38,7 @@
             raise
         else:
             if res is None:
-                log.error('failed to get url: %r, check your realm' % res.url)
+                log.error('failed to get url: %r, check your realm' % req.get_full_url())
             elif res.code>=400:
                 log.error('failed to get url: %r %r' % (res.url, res.code))
             else:



More information about the Checkins mailing list