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/05/06 22:49:57 UTC
svn commit: r941913 - /incubator/libcloud/trunk/libcloud/drivers/dreamhost.py
Author: pquerna
Date: Thu May 6 20:49:57 2010
New Revision: 941913
URL: http://svn.apache.org/viewvc?rev=941913&view=rev
Log:
make api_parse_error private.
Modified:
incubator/libcloud/trunk/libcloud/drivers/dreamhost.py
Modified: incubator/libcloud/trunk/libcloud/drivers/dreamhost.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/dreamhost.py?rev=941913&r1=941912&r2=941913&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/dreamhost.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/dreamhost.py Thu May 6 20:49:57 2010
@@ -93,13 +93,13 @@ class DreamhostResponse(Response):
def parse_body(self):
resp = json.loads(self.body)
if resp['result'] != 'success':
- raise Exception(self.api_parse_error(resp))
+ raise Exception(self._api_parse_error(resp))
return resp['data']
def parse_error(self):
raise Exception
- def api_parse_error(self, response):
+ def _api_parse_error(self, response):
if 'data' in response:
if response['data'] == 'invalid_api_key':
raise InvalidCredsException("Oops! You've entered an invalid API key")