diff --git a/python3/vimspector/debug_session.py b/python3/vimspector/debug_session.py index e4b2b59..1e239e1 100644 --- a/python3/vimspector/debug_session.py +++ b/python3/vimspector/debug_session.py @@ -457,6 +457,11 @@ class DebugSession( object ): 'utf-8' ).strip() self._logger.debug( 'Got PID: %s', pid ) + if not pid: + # FIXME: We should raise an exception here or something + utils.UserMessage( 'Unable to get PID', persist = True ) + return + cmd = ssh + remote[ 'attachCommand' ][:] for index, item in enumerate( cmd ):