From bd2c58d24cd18314f5d1ff44b705a202f583d84a Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Mon, 10 Sep 2007 02:50:35 -0400 Subject: [PATCH] Console: avoid to add missed logfiles --- services/console/interface/logviewer/logviewer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/console/interface/logviewer/logviewer.py b/services/console/interface/logviewer/logviewer.py index 1704212b..3f3c7c5e 100644 --- a/services/console/interface/logviewer/logviewer.py +++ b/services/console/interface/logviewer/logviewer.py @@ -92,6 +92,10 @@ class MultiLogView(gtk.VBox): if os.path.isdir(path): return False + if not os.path.exists(path): + print "ERROR: %s don't exists" + return False + logfile = self._get_filename_from_path(path) if not self._activity.has_key(logfile):