projects
/
svn42.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added photo listener
[svn42.git]
/
door_daemon.py
diff --git
a/door_daemon.py
b/door_daemon.py
index
cc6c7c2
..
f17083b
100755
(executable)
--- a/
door_daemon.py
+++ b/
door_daemon.py
@@
-23,19
+23,24
@@
class StatusDisplay():
def display_open(self):
if self.last_status_set != self.url_open:
self.last_status_set=self.url_open
def display_open(self):
if self.last_status_set != self.url_open:
self.last_status_set=self.url_open
- #print "accessing %s\n" % self.last_status_set
- f = urllib.urlopen(self.last_status_set)
- f.read()
- f.close()
-
+ try:
+ #print "accessing %s\n" % self.last_status_set
+ f = urllib.urlopen(self.last_status_set)
+ f.read()
+ f.close()
+ except:
+ pass
+
def display_closed(self):
if self.last_status_set != self.url_closed:
self.last_status_set=self.url_closed
def display_closed(self):
if self.last_status_set != self.url_closed:
self.last_status_set=self.url_closed
- #print "accessing %s\n" % self.last_status_set
- f = urllib.urlopen(self.last_status_set)
- f.read()
- f.close()
-
+ try:
+ #print "accessing %s\n" % self.last_status_set
+ f = urllib.urlopen(self.last_status_set)
+ f.read()
+ f.close()
+ except:
+ pass
class ArduinoUSBThread ( threading.Thread ):
def __init__(self, file_dev_ttyusb):
class ArduinoUSBThread ( threading.Thread ):
def __init__(self, file_dev_ttyusb):