)]}'
{"oslo_db/sqlalchemy/enginefacade.py":[{"author":{"_account_id":6849,"name":"Roman Podoliaka","email":"roman.podoliaka@gmail.com","username":"rpodolyaka"},"change_message_id":"f12b7c27d1fc7d31dd4c8b592a13fdd0ad58deb0","unresolved":false,"context_lines":[{"line_number":630,"context_line":"            except Exception:"},{"line_number":631,"context_line":"                with excutils.save_and_reraise_exception():"},{"line_number":632,"context_line":"                    self.session.rollback()"},{"line_number":633,"context_line":"                raise"},{"line_number":634,"context_line":"            finally:"},{"line_number":635,"context_line":"                self.session.close()"},{"line_number":636,"context_line":"                self.session \u003d None"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f044301_f881f54b","line":633,"updated":"2017-05-08 10:03:04.000000000","message":"Hmm, save_and_reraise_exception() will re-raise the original exception for us, why do we need this `raise` here then?","commit_id":"bce96add0b8ef91897116f05dcf772c4abfc5bb0"}],"oslo_db/tests/sqlalchemy/test_enginefacade.py":[{"author":{"_account_id":9796,"name":"ChangBo Guo","email":"glongwave@gmail.com","username":"gcb"},"change_message_id":"87f977b98da62d4a76c09a918d17b8d56fcde21a","unresolved":false,"context_lines":[{"line_number":1653,"context_line":"        class CommitException(Exception):"},{"line_number":1654,"context_line":"            pass"},{"line_number":1655,"context_line":""},{"line_number":1656,"context_line":"        def fake_session_rollback(*args, **kwargs):"},{"line_number":1657,"context_line":"            raise RollbackException()"},{"line_number":1658,"context_line":""},{"line_number":1659,"context_line":"        def fake_session_commit(*args, **kwargs):"},{"line_number":1660,"context_line":"            raise CommitException()"},{"line_number":1661,"context_line":""},{"line_number":1662,"context_line":"        commit_patch.side_effect \u003d fake_session_commit"},{"line_number":1663,"context_line":"        rollback_patch.side_effect \u003d fake_session_rollback"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f013ff3_9a22e5ff","line":1660,"range":{"start_line":1656,"start_character":0,"end_line":1660,"end_character":35},"updated":"2017-05-17 08:50:10.000000000","message":"I think we don\u0027t need these wrapped functions,\n\nJust use as follow:\n\ncommit_patch.side_effect \u003d CommitException()\nrollback_patch.side_effect \u003d RollbackException()","commit_id":"5b84edcae73dd2694088823c913fab623c07b5d1"}]}
