Commits

benoitc  committed 0d88445

use RuntimeError exception. While I'm remove useless HTTPError

  • Participants
  • Parent commits e553d53

Comments (0)

Files changed (2)

File restclient/errors.py

     """
     
 class TransportError(Exception):
-    """Error raised by a transport """
-    
-class HTTPError(Exception):
-    """ raised when there is an HTTP error """
-    
-class DependancyError(Exception):
-    """ raised when it can't load a dependancy """
+    """Error raised by a transport """

File restclient/transport/__init__.py

     elif httplib2 is not None:
         http = HTTPLib2Transport()
     else:
-        raise DependancyError("httplib2 or curl are missing")
+        raise RuntimeError("httplib2 or curl are missing")
     return http
 
 def getDefaultHTTPTransport():