Hi everybody,
I run into a weird scenario, caused by a complex code involving threads
and so on.
The problem arised in some point, with a DatabaseError exception, saying:
/current transaction is aborted, commands ignored until end of
transaction block/
Obviously, the line which arises that error is the next one after
transaction is corrupted. So, my question is: how do I can force django
to raise exceptions when a given transaction fail?
An example is the following
func1()
func2() <-- Here, a db transaction fails, making all next calls raise
that DatabaseError exception
func3() <-- Here DatabaseError is raised
I just want that func2 notice me that there is an error with its
transaction.
Thank you in advance
Vyrphan
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.