On Apr 30, 5:29 am, Chris Curvey <[EMAIL PROTECTED]> wrote: > Anyone seen this message before? I have to believe it's a usage error > on my part, but I can't figure out what the practical meaning is > > Module elixir.entity:826 in delete > > def delete(self, *args, **kwargs): > return object_session(self).delete(self, *args, **kwargs) > > <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute > 'delete'
Hey Chris, You didn't provide any context for where the error is occuring but basically, this is a standard Python exception for trying to access a non-existent attribute - in this case the method 'delete' - on an object. ActivePython 2.5.1.1 (ActiveState Software Inc.) based on Python 2.5.1 (r251:54863, May 1 2007, 17:47:05) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> a = None >>> a.delete() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'NoneType' object has no attribute 'delete' My guess is you're trying to delete an object you think you've retrieved from a db when the actual object itself is None. - alex23 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SQLElixir" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlelixir?hl=en -~----------~----~----~----~------~----~------~--~---
