From d1843918d935e62f13535d121e04e632af47fcf7 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 30 Aug 2012 16:17:01 +0100 Subject: bluetooth missing bug --- wim.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'wim.py') 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() -- cgit v1.2.3