bugfix
authorrealraum <realraum@realraum.at>
Tue, 8 Sep 2009 14:01:17 +0000 (14:01 +0000)
committerrealraum <realraum@realraum.at>
Tue, 8 Sep 2009 14:01:17 +0000 (14:01 +0000)
door_daemon.py

index dd78d0c..f17083b 100755 (executable)
@@ -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()