Handling no diagnostic data from event response
This commit is contained in:
parent
a471ce761f
commit
afa1afc49b
@ -51,14 +51,18 @@ class EventNotification( BaseRequest ):
|
|||||||
return []
|
return []
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self._cached_response = [ _ConvertDiagnosticDataToVimData( x )
|
self._cached_response = JsonFromFuture( self._response_future )
|
||||||
for x in JsonFromFuture(
|
|
||||||
self._response_future ) ]
|
|
||||||
return self._cached_response
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
vimsupport.PostVimMessage( str( e ) )
|
vimsupport.PostVimMessage( str( e ) )
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
if not self._cached_response:
|
||||||
|
return []
|
||||||
|
|
||||||
|
self._cached_response = [ _ConvertDiagnosticDataToVimData( x )
|
||||||
|
for x in self._cached_response ]
|
||||||
|
return self._cached_response
|
||||||
|
|
||||||
|
|
||||||
def _ConvertDiagnosticDataToVimData( diagnostic ):
|
def _ConvertDiagnosticDataToVimData( diagnostic ):
|
||||||
# see :h getqflist for a description of the dictionary fields
|
# see :h getqflist for a description of the dictionary fields
|
||||||
|
Loading…
x
Reference in New Issue
Block a user