From c91130f280c1a900d21945e7b30067761488589b Mon Sep 17 00:00:00 2001 From: Val Markovic Date: Tue, 1 Mar 2016 18:57:17 -0800 Subject: [PATCH] Not depending on exception internals We used to read the `message` attribute; that breaks on py3. The standard idiom is to just use `str( exception )` to get the message. --- python/ycm/client/command_request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ycm/client/command_request.py b/python/ycm/client/command_request.py index bdfe5b42..11909746 100644 --- a/python/ycm/client/command_request.py +++ b/python/ycm/client/command_request.py @@ -108,7 +108,7 @@ class CommandRequest( BaseRequest ): try: vimsupport.ReplaceChunks( chunks ) except RuntimeError as e: - vimsupport.PostMultiLineNotice( e.message ) + vimsupport.PostMultiLineNotice( str( e ) ) def _HandleBasicResponse( self ):