Don't rollback if exception is HTTPSuccessful or HTTPRedirection
In the request finishing, the 'cleanup' callback set by _cw_cnx
automatically commit the transaction except is an exception is set
on the request.
Problem is, redirections and successul http return code can raise
exceptions.
This patch detects such exceptions and avoid rolling back the transaction.
Closes #4566482
Author:
Christophe de Vienne
Copyright:
© 2014 Unlish
This package is distributed under the terms of the GNU Lesser General Public
License, version 2.1. On Debian systems, the complete text of the GNU Lesser
General Public License may be found in '/usr/share/common-licenses/LGPL-2.1'.