diff options
author | Garrett Holmstrom <gholms@fedoraproject.org> | 2012-03-10 22:45:18 -0800 |
---|---|---|
committer | Mitch Garnaat <mitch@garnaat.com> | 2012-03-27 10:26:25 -0700 |
commit | c9cca877b6cca5ff85e97754f07539ae3c786483 (patch) | |
tree | 8a2e9898772371d0a2c55dac7cc518f0d9eae9aa | |
parent | 5d84b33e15ce30445705cf5ba34b36b09733160f (diff) | |
download | boto-c9cca877b6cca5ff85e97754f07539ae3c786483.tar.gz |
Inherit exceptions from Exception, not StandardError
-rw-r--r-- | boto/exception.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/boto/exception.py b/boto/exception.py index d28dc950..0cdd8162 100644 --- a/boto/exception.py +++ b/boto/exception.py @@ -30,13 +30,13 @@ from boto import handler from boto.resultset import ResultSet -class BotoClientError(StandardError): +class BotoClientError(Exception): """ General Boto Client error (error accessing AWS) """ def __init__(self, reason, *args): - StandardError.__init__(self, reason, *args) + Exception.__init__(self, reason, *args) self.reason = reason def __repr__(self): @@ -45,7 +45,7 @@ class BotoClientError(StandardError): def __str__(self): return 'BotoClientError: %s' % self.reason -class SDBPersistenceError(StandardError): +class SDBPersistenceError(Exception): pass @@ -67,10 +67,10 @@ class GSPermissionsError(StoragePermissionsError): """ pass -class BotoServerError(StandardError): +class BotoServerError(Exception): def __init__(self, status, reason, body=None, *args): - StandardError.__init__(self, status, reason, body, *args) + Exception.__init__(self, status, reason, body, *args) self.status = status self.reason = reason self.body = body or '' |