SyntaxFix
Write A Post
Hire A Developer
Questions
What is a when you call Ancestors('A',a)? If a['A'] is None, or if a['A'][0] is None, you'd receive that exception.
a
Ancestors('A',a)
a['A']
a['A'][0]