On Apr 29, 7:33 pm, alex23 <[EMAIL PROTECTED]> wrote:
> 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.
>

oh yeah, I got that.  I guess I'm asking if anyone can think of a
reason why object_session(self) would return None.  To hack around the
problem, I put the session.flush() statements in my code into try/
catch blocks, and I just pass on the error, but I'm wondering what
other problems I'm hiding by doing that.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to