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.
This commit is contained in:
Val Markovic 2016-03-01 18:57:17 -08:00
parent 0ed1096040
commit c91130f280

View File

@ -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 ):