- Posted on
Fri Jul 08, 2022 4:35 am
-
Alain
offline
-
- Posts: 88
- Joined: Apr 19, 2008
Here is the error message that shows up in the event log:
Script Error embedded script error:
Script Error multiple exception types must be parenthesized
Script Error around line 15 - "except Exception, e:"
This is the code that I am using that generates the error:
Kitchenvol = indigo.variables[1393229654] # Kitchen Speaker
Mezzvol = indigo.variables[306641482] # Mezzanine Speaker
Dockvol = indigo.variables[1379504043] # Dock Speaker
Deckvol = indigo.variables[1036974780] # Deck Speaker
Loungevol = indigo.variables[472300888] # Lounge Speaker
airfoilPlugin = indigo.server.getPlugin("com.perceptiveautomation.indigoplugin.airfoilpro")
if airfoilPlugin.isEnabled():
try:
result = airfoilPlugin.executeAction('setVolume', deviceId=1273285365, props={'volume': Kitchenvol.value}, waitUntilDone=True)
result = airfoilPlugin.executeAction('setVolume', deviceId=835274311, props={'volume': Loungevol.value}, waitUntilDone=True)
result = airfoilPlugin.executeAction('setVolume', deviceId=243903985, props={'volume': Deckvol.value}, waitUntilDone=True)
result = airfoilPlugin.executeAction('setVolume', deviceId=1984618667, props={'volume': Mezzvol.value}, waitUntilDone=True)
result = airfoilPlugin.executeAction('setVolume', deviceId=1894059650, props={'volume': Dockvol.value}, waitUntilDone=True)
except Exception, e:
print "Exception occurred: %s" % unicode(e)