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:
parent
0ed1096040
commit
c91130f280
@ -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 ):
|
||||
|
Loading…
Reference in New Issue
Block a user