From: realraum Date: Tue, 8 Sep 2009 14:01:17 +0000 (+0000) Subject: bugfix X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=bb5b471c3bafe46ba329c439d194cddcf60055b1;p=svn42.git bugfix --- diff --git a/door_daemon.py b/door_daemon.py index dd78d0c..f17083b 100755 --- a/door_daemon.py +++ b/door_daemon.py @@ -22,19 +22,19 @@ class StatusDisplay(): def display_open(self): if self.last_status_set != self.url_open: + self.last_status_set=self.url_open try: #print "accessing %s\n" % self.last_status_set f = urllib.urlopen(self.last_status_set) f.read() f.close() - self.last_status_set=self.url_open except: pass def display_closed(self): if self.last_status_set != self.url_closed: + self.last_status_set=self.url_closed try: - self.last_status_set=self.url_closed #print "accessing %s\n" % self.last_status_set f = urllib.urlopen(self.last_status_set) f.read()