libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r998271 - /incubator/libcloud/trunk/libcloud/drivers/linode.py
Date Fri, 17 Sep 2010 19:22:43 GMT
Author: jed
Date: Fri Sep 17 19:22:43 2010
New Revision: 998271

URL: http://svn.apache.org/viewvc?rev=998271&view=rev
Log:
Let's just forget I wrote that, OK?

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

Modified: incubator/libcloud/trunk/libcloud/drivers/linode.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/linode.py?rev=998271&r1=998270&r2=998271&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/linode.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/linode.py Fri Sep 17 19:22:43 2010
@@ -104,11 +104,7 @@ class LinodeResponse(Response):
         self.objects, self.errors = self.parse_body()
         if not self.success():
             # Raise the first error, as there will usually only be one
-            try: raise self.errors[0]
-            except MalformedResponseError, excp:
-                # pass this one up intact
-                raise
-            except: raise LinodeException(0xFA, "Something bad happened")
+            raise self.errors[0]
 
     def parse_body(self):
         """Parse the body of the response into JSON objects



Mime
View raw message