This 'pass' seems dangerous. Did you reach out to find out why you were getting this exception on 'notes'? I suspect there must have been a missing mapping of category->python class.