Permalink
Browse files

Inherit exceptions from Exception, not StandardError

  • Loading branch information...
1 parent 5d84b33 commit c9cca877b6cca5ff85e97754f07539ae3c786483 @gholms gholms committed with garnaat Mar 11, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 boto/exception.py
View
10 boto/exception.py
@@ -30,13 +30,13 @@
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 @@ def __repr__(self):
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 ''

0 comments on commit c9cca87

Please sign in to comment.