Script Error control page "0 Common" script error in file gDoorRFID OPEN.py:
Script Error inconsistent use of tabs and spaces in indentation
Script Error around line 18 - "time.sleep(1)"
The entire script:
- Code: Select all
# opens fDoor if fDoor interlock variable is true; interlock true for 1 sec
import time
fDoorInterlock = indigo.variables[911502153].getValue(bool)
hseStatus = indigo.variables[1176596514].getValue(bool)
if hseStatus:
indigo.variable.updateValue(911502153, value = "True") #set to true enabling operation of door latch
fDoorInterlock = indigo.variables[911502153].getValue(bool)
fDoorInterlock = indigo.variables[911502153].getValue(bool)
fDoorInterlock = indigo.variables[911502153].getValue(bool)
if fDoorInterlock:
exec(open("/Library/Application Support/Perceptive Automation/Scripts/RFID-Access-Control.py").read())
fDoorInterlock = indigo.variables[911502153].getValue(bool)
time.sleep(1)
indigo.variable.updateValue(911502153, value = "False") #set to false
fDoorInterlock = indigo.variables[911502153].getValue(bool)
Quoting the code above shows lines 18 and 19 with a one character indent; the code in BBEdit does not show that extra space.
I have no idea how to fix this error.
Suggestions?