Comment 9 for bug 916827

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/3187
Committed: http://github.com/openstack/keystone/commit/7681a01171b7ebdf8c0d578de5eb129af50b8600
Submitter: Jenkins
Branch: master

commit 7681a01171b7ebdf8c0d578de5eb129af50b8600
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
    ?highlight=__exit__#contextmanager.__exit__

    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: I79bbac32b5c99742b5cb283c6e55e6204bf92adc