Re: Catching errors inside transaction.atomic()

2017-06-13 Thread Jani Tiainen
to handle smaller units of transactiond. 13.6.2017 17.52 "Alex Krupp" <alex.kr...@gmail.com> kirjoitti: The Django documentation gives a warning <https://docs.djangoproject.com/en/1.11/topics/db/transactions/#controlling-transactions-explicitly> to avoid catching errors ins

Catching errors inside transaction.atomic()

2017-06-13 Thread Alex Krupp
The Django documentation gives a warning <https://docs.djangoproject.com/en/1.11/topics/db/transactions/#controlling-transactions-explicitly> to avoid catching errors inside transaction.atomic() blocks, and to use nested transactions if you need to do so. But in the case where we have