Expected An Indented Block

Hello

On the code below I keep getting the error message “Expected An Indented Block”. The code is supposed to create a list of new Filter Rules (I can’t get the OOTB node to create a list of Rules, only a Single Rule).

import clr
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *
import System
from System.Collections.Generic import *

dataEnteringNode = IN

parameter = IN[0]
ruleValues = IN[1]

#TransactionManager.Instance.EnsureInTransaction(doc)

rulesList = []

#If the rule exists then hopefully the Try statement will hop over it...
try:

for value in ruleValues:
	#requires parameter Id, string for filter name and boolean for if Case Sensitive or not
	newRule = ParameterFilterRuleFactory.CreateEqualsRule(parameter.Id, value, false)
	rulesList.append(newRule)
	#rulesList.append(ParameterFilterRuleFactory.CreateEqualsRule(parameter.Id, value, false))
except:
    pass 

#TransactionManager.Instance.TransactionTaskDone()

OUT = rulesList<a class="attachment" href="//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/business6/uploads/dynamobim/original/3X/5/3/538f5e14df3f6a4f6bc5546c7cf2951db1fea042.dyn">WIP View Filters Create From Filled Regions.dyn</a> (21.7 KB)<a class="attachment" href="//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/business6/uploads/dynamobim/original/3X/5/3/538f5e14df3f6a4f6bc5546c7cf2951db1fea042.dyn">WIP View Filters Create From Filled Regions.dyn</a> (21.7 KB)

WIP View Filters Create From Filled Regions.dyn (21.7 KB)

You haven’t indented your for loop right after the try.