From: realraum Date: Mon, 5 Jul 2010 05:31:14 +0000 (+0000) Subject: suppress ssh host addition warning X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=4022120de2abcbd8f71f199e2cb2d9fd73a05680;hp=4c1846de7736a0cadc7a4f58d09a99a869cceffe;p=svn42.git suppress ssh host addition warning --- 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()