Skip to content
Browse files

Modern use of raise.

  • Loading branch information...
1 parent 7e93ad5 commit bca98e66ac64469463bcd0b61f45831c85988e70 @kgaughan committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 dbkit.py
View
4 dbkit.py
@@ -765,7 +765,7 @@ def __getattr__(self, key):
try:
return self[key]
except KeyError, exc:
- raise AttributeError, exc
+ raise AttributeError(exc)
def __setattr__(self, key, value):
self[key] = value
@@ -774,7 +774,7 @@ def __delattr__(self, key):
try:
del self[key]
except KeyError, exc:
- raise AttributeError, exc
+ raise AttributeError(exc)
def __repr__(self):
return '<AttrDict ' + dict.__repr__(self) + '>'

0 comments on commit bca98e6

Please sign in to comment.
Something went wrong with that request. Please try again.