The exception passed in should never be reraised explicitly - instead,
this method should return a false value to indicate that the method completed
successfully and does not want to suppress the raised exception.
This allows context management code (such as contextlib.nested) to easily
detect whether or not an __exit__() method has actually failed.
Reviewed: https:/ /review. openstack. org/3187 github. com/openstack/ keystone/ commit/ 7681a01171b7ebd f8c0d578de5eb12 9af50b8600
Committed: http://
Submitter: Jenkins
Branch: master
commit 7681a01171b7ebd f8c0d578de5eb12 9af50b8600
Author: Zhongyue Luo <email address hidden>
Date: Thu Jan 19 13:39:42 2012 -0500
Exception raise error
Fixes bug #916827
As per: http:// docs.python. org/library/ stdtypes. html __exit_ _#contextmanage r.__exit_ _
?highlight=
Ionut Artarisi wrote:
The exception passed in should never be reraised explicitly - instead,
this method should return a false value to indicate that the method completed
successfully and does not want to suppress the raised exception.
This allows context management code (such as contextlib.nested) to easily
detect whether or not an __exit__() method has actually failed.
Change-Id: I79bbac32b5c997 42b5cb283c6e55e 6204bf92adc