)]}'
{"manila/share/drivers/glusterfs/layout_directory.py":[{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ce4152f8ff2453a3f1c912a393c01ca422a56a81","unresolved":false,"context_lines":[{"line_number":215,"context_line":"                \u0027limit-usage\u0027, share_dir, sizestr)"},{"line_number":216,"context_line":"        try:"},{"line_number":217,"context_line":"            self.gluster_manager.gluster_call(*args)"},{"line_number":218,"context_line":"        except Exception as exc:"},{"line_number":219,"context_line":"            if isinstance(exc, exception.ProcessExecutionError):"},{"line_number":220,"context_line":"                LOG.error(_LE(\u0027Unable to shink share %s\u0027), share[\u0027name\u0027])"},{"line_number":221,"context_line":"                exc \u003d exception.GlusterfsException(exc)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f231b9d_e6c3fc36","line":218,"range":{"start_line":218,"start_character":8,"end_line":218,"end_character":32},"updated":"2017-06-19 11:35:12.000000000","message":"I believe here you could capture only ProcessExecutionError and then log and raise a GlusterfsException. All other exceptions will not be captured and raised automatically","commit_id":"50ecde3817219193928ad3624aad5de8aa62f667"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"530c5cd175f919c9982b4f9c0f958f277ac44c51","unresolved":false,"context_lines":[{"line_number":217,"context_line":"            self.gluster_manager.gluster_call(*args)"},{"line_number":218,"context_line":"        except Exception as exc:"},{"line_number":219,"context_line":"            if isinstance(exc, exception.ProcessExecutionError):"},{"line_number":220,"context_line":"                LOG.error(_LE(\u0027Unable to shink share %s\u0027), share[\u0027name\u0027])"},{"line_number":221,"context_line":"                exc \u003d exception.GlusterfsException(exc)"},{"line_number":222,"context_line":"        raise exc"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f231b9d_2c6c439a","line":220,"range":{"start_line":220,"start_character":26,"end_line":220,"end_character":29},"updated":"2017-06-19 02:13:26.000000000","message":"Remove","commit_id":"50ecde3817219193928ad3624aad5de8aa62f667"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ce4152f8ff2453a3f1c912a393c01ca422a56a81","unresolved":false,"context_lines":[{"line_number":219,"context_line":"            if isinstance(exc, exception.ProcessExecutionError):"},{"line_number":220,"context_line":"                LOG.error(_LE(\u0027Unable to shink share %s\u0027), share[\u0027name\u0027])"},{"line_number":221,"context_line":"                exc \u003d exception.GlusterfsException(exc)"},{"line_number":222,"context_line":"        raise exc"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f231b9d_46019069","line":222,"range":{"start_line":222,"start_character":14,"end_line":222,"end_character":17},"updated":"2017-06-19 11:35:12.000000000","message":"this is reraising the captured exception and thus losing the original trace. You should do just a \"raise\" or refactor the \"except\" statement as I suggested above","commit_id":"50ecde3817219193928ad3624aad5de8aa62f667"}]}
