You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2014/08/08 20:23:12 UTC

git commit: Add two missing super calls.

Repository: libcloud
Updated Branches:
  refs/heads/trunk 13fe413d7 -> 6deb49e08


Add two missing super calls.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/6deb49e0
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/6deb49e0
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/6deb49e0

Branch: refs/heads/trunk
Commit: 6deb49e0811011ee569d0ebca7cc70877dac8593
Parents: 13fe413
Author: Tomaz Muraus <to...@apache.org>
Authored: Fri Aug 8 15:42:33 2014 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Fri Aug 8 15:42:33 2014 +0200

----------------------------------------------------------------------
 libcloud/common/types.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/6deb49e0/libcloud/common/types.py
----------------------------------------------------------------------
diff --git a/libcloud/common/types.py b/libcloud/common/types.py
index 98250c1..6020440 100644
--- a/libcloud/common/types.py
+++ b/libcloud/common/types.py
@@ -29,6 +29,7 @@ class LibcloudError(Exception):
     """The base class for other libcloud exceptions"""
 
     def __init__(self, value, driver=None):
+        super(LibcloudError, self).__init__(value)
         self.value = value
         self.driver = driver
 
@@ -74,11 +75,9 @@ class ProviderError(LibcloudError):
     HTTP 404 : NodeNotFoundError, ContainerDoesNotExistError
     """
 
-    def __init__(self, value, http_code,
-                 driver=None):
-        self.value = value
+    def __init__(self, value, http_code, driver=None):
+        super(ProviderError, self).__init__(value=value, driver=driver)
         self.http_code = http_code
-        self.driver = driver
 
     def __str__(self):
         return self.__repr__()