You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by pq...@apache.org on 2010/01/04 04:27:47 UTC

svn commit: r895542 - /incubator/libcloud/trunk/libcloud/drivers/rimuhosting.py

Author: pquerna
Date: Mon Jan  4 03:27:42 2010
New Revision: 895542

URL: http://svn.apache.org/viewvc?rev=895542&view=rev
Log:
Inherit from Exception, and use args rather than .message.

Modified:
    incubator/libcloud/trunk/libcloud/drivers/rimuhosting.py

Modified: incubator/libcloud/trunk/libcloud/drivers/rimuhosting.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/rimuhosting.py?rev=895542&r1=895541&r2=895542&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/rimuhosting.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/rimuhosting.py Mon Jan  4 03:27:42 2010
@@ -30,15 +30,12 @@
 API_PORT = (80,443)
 API_SECURE = True
 
-class RimuHostingException(BaseException):
-    def __init__(self, error):
-        self.error = error
-        
+class RimuHostingException(Exception):
     def __str__(self):
-        return self.error
+        return self.args[0]
 
     def __repr__(self):
-        return "<RimuHostingException '%s'>" % (self.error)
+        return "<RimuHostingException '%s'>" % (self.args[0])
 
 class RimuHostingResponse(Response):
     def __init__(self, response):