raise_for_status +URLError
authorKenneth Reitz <me@kennethreitz.com>
Thu, 23 Jun 2011 10:22:46 +0000 (06:22 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Thu, 23 Jun 2011 10:22:46 +0000 (06:22 -0400)
requests/models.py

index 099f1c6..f9a2f5a 100644 (file)
@@ -366,7 +366,7 @@ class Response(object):
 
 
     def raise_for_status(self):
-        """Raises stored :class:`HTTPError`, if one occured."""
+        """Raises stored :class:`HTTPError` or :class:`URLError`, if one occured."""
         if self.error:
             raise self.error