I am trying the following but I only get 25 in the progress field on features that have something in "Field5". It seems to stop if it encounters a blank record in Field5. What am i doing wrong?
valDict{}
with arcpy.da.UpdateCursor(table2, ["OBJECTID","Field1","Field2","Field3","Field4","Field5","Field6", "Field7", "Field8","Progress"],
where) as cursor:
for row in cursor:
try:
if row[5] is None: #if row[5] not in (None, "", " "):
continue
if row[5] in list1:
print ("{} is in list".format(row[0]))
row[9] = valDict.get(row[5]) if row[6] == "Pass" else valDict.get(row[5], 25) - 25
cursor.updateRow(row)
except:
continue