magic-removal: Changed ManipulatorDescriptor to raise AttributeError correctly

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-01-27 21:29:29 +00:00
parent 1af3a39868
commit a35f7c6e15
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class ManipulatorDescriptor(object):
def __get__(self, instance, model=None):
if instance != None:
raise "Manipulator cannot be accessed via instance"
raise AttributeError, "Manipulator cannot be accessed via instance"
else:
if not self.man:
# Create a class that inherits from the "Manipulator" class