From 4022120de2abcbd8f71f199e2cb2d9fd73a05680 Mon Sep 17 00:00:00 2001 From: realraum Date: Mon, 5 Jul 2010 05:31:14 +0000 Subject: [PATCH] suppress ssh host addition warning --- track-presence.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/track-presence.py b/track-presence.py index 789a75c..9f0aa66 100755 --- a/track-presence.py +++ b/track-presence.py @@ -178,7 +178,8 @@ def trackSensorStatusThread(uwscfg,status_tracker,connection_listener): if len(line) < 1: raise Exception("EOF on Subprocess, daemon seems to have quit, returncode: %d",sshp.returncode) logging.debug("trackSensorStatusThread: Got Line: " + line) - connection_listener.distributeData(line) + if not line.startswith("Warning: Permanently added"): + connection_listener.distributeData(line) m = RE_MOVEMENT.match(line) if not m is None: status_tracker.movementDetected() -- 1.7.10.4