This edit removed the whole traceback (call stack) in the question. IMHO, this contained the detail in which line exactly the problem occurred.
Is it just my lack of Python knowledge not finding the culprit line, or shouldn't that edit have been approved?