JoelMon / pyTalkManager

Software to aid public talk coordinators in the congregations of Jehovah's Witnesses.
http://theodevelopers.github.io/pyTalkManager
6 stars 1 forks source link

BUG - Crash when adding new congregation #79

Closed JoelMon closed 9 years ago

JoelMon commented 9 years ago

When a new congregation is added, pyTalkManager crashes when comparing new congregation's name with names of congregations in the database.

The error may be related to the changes made recently related to sorting.

Traceback (most recent call last):
  File "main.py", line 268, in new_congregation
    new_congregation.add_congregation()
  File "/home/user/Development/pyTalkManager/pyTalkManager/congregation.py", line 113, in add_congregation
    dup_congregation = Congregation.__check_for_dup(self, values[0])
  File "/home/user/Development/pyTalkManager/pyTalkManager/congregation.py", line 177, in __check_for_dup
    if item.lower() == check_name.lower():
AttributeError: 'int' object has no attribute 'lower'