summaryrefslogtreecommitdiff
path: root/wim.py
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-08-30 16:17:01 +0100
committerTim Redfern <tim@eclectronics.org>2012-08-30 16:17:01 +0100
commitd1843918d935e62f13535d121e04e632af47fcf7 (patch)
tree47af453be5b9fd4f644f246398a4629e306dfe68 /wim.py
parent27d9bbcd0586d76853f24d1eb73457f0f7478ff6 (diff)
bluetooth missing bug
Diffstat (limited to 'wim.py')
-rwxr-xr-xwim.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/wim.py b/wim.py
index ff437b2..ec77a47 100755
--- a/wim.py
+++ b/wim.py
@@ -78,8 +78,11 @@ except:
from btscan import *
scan=scanner("127.0.0.1",5401,False)
-for t in doc.bt.trigger:
- scan.d.dm.triggers[t.id]=(t.command,t.param)
+try:
+ for t in doc.bt.trigger:
+ scan.d.dm.triggers[t.id]=(t.command,t.param)
+except:
+ print "wim: no bluetooth triggers found"
if len(scan.d.dm.triggers) >0:
scan.start()