rajasekhar911 wrote:
> Hi guys
>
> I got this weird AsserstionError and KeyError. It says it is ignored.
> The class Credential is a mapped as a relation to the parent class.
>
> credential=relation(Credential, \
>                     primaryjoin=id == Credential.n_id,\
>                     foreign_keys=[Credential.n_id],\
>                     uselist=False,cascade='all, delete, delete-
> orphan')
>
> Exception AssertionError: AssertionError('State
> <sqlalchemy.orm.state.InstanceState object at 0x9f0e12c> is not
> present in this identity map',) in <bound method
> InstanceState._cleanup of <sqlalchemy.orm.state.InstanceState object
> at 0x9f0e12c>> ignored
>
> Exception AssertionError: AssertionError('State
> <sqlalchemy.orm.state.MutableAttrInstanceState object at 0x9f0eeac> is
> not present in this identity map',) in <bound method
> MutableAttrInstanceState._cleanup of
> <sqlalchemy.orm.state.MutableAttrInstanceState object at 0x9f0eeac>>
> ignored
>
> Exception AssertionError: AssertionError('State
> <sqlalchemy.orm.state.MutableAttrInstanceState object at 0xa913942c>
> is not present in this identity map',) in <bound method
> MutableAttrInstanceState._cleanup of
> <sqlalchemy.orm.state.MutableAttrInstanceState object at 0xa913942c>>
> ignored
>
> Exception KeyError: ((<class 'model.Credential.Credential'>,
> (u'6d73d41c-e4ad-a525-1f71-3cf6b1595f05',)),) in <bound method
> MutableAttrInstanceState._cleanup of
> <sqlalchemy.orm.state.MutableAttrInstanceState object at 0xa7f7c3ac>>
> ignored
>
> is this just a warning or an actual exception..
> i tried googling , turned out nothing.

these are state exceptions upon teardown and are likely harmless, though
more information on the context which produces these would help
(especially: exact version of SQLAlchemy in use, steps to reproduce), as
I've never seen such exceptions actually get produced before.


>
> thnx in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To post to this group, send email to sqlalch...@googlegroups.com.
> To unsubscribe from this group, send email to
> sqlalchemy+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/sqlalchemy?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to