Python Transactionmanagementerror “transaction Managed Block Ended

Python Transactionmanagementerror “transaction Managed Block Ended