From b895cbf0b3c1f81e60d9d7ba331dceeb750a906c Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 27 Feb 2017 22:57:14 +0100 Subject: [PATCH] if nothing is found log it --- src/fenrir/screenDriver/vcsaDriver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fenrir/screenDriver/vcsaDriver.py b/src/fenrir/screenDriver/vcsaDriver.py index 7216bd37..00eec98a 100644 --- a/src/fenrir/screenDriver/vcsaDriver.py +++ b/src/fenrir/screenDriver/vcsaDriver.py @@ -81,7 +81,9 @@ class driver(): if screen == '': screen = str(inf.Get('org.freedesktop.login1.Session', 'TTY')) screen = screen[screen.upper().find('TTY') + 3:] - + if screen == '': + self.env['runtime']['debug'].writeDebugOut('No TTY found for session:' + session[4],debug.debugLevel.ERROR) + return if sessionType.upper() == 'X11': self.env['screenData']['autoIgnoreScreens'].append(screen) if screen == self.env['screenData']['newTTY'] :