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 when editing a brother and there's a missing field #88

Closed JoelMon closed 9 years ago

JoelMon commented 9 years ago

Theres an error when a brother is edited and there's a missing field.

Code to check

Traceback (most recent call last):
  File "/home/user/Development/pyTalkManager/pyTalkManager/main.py", line 253, in <lambda>
    self.button_add.clicked.connect(lambda: self.submit_edits(row_id))
  File "/home/user/Development/pyTalkManager/pyTalkManager/main.py", line 362, in submit_edits
    edit.edit_brother(row)
  File "/home/user/Development/pyTalkManager/pyTalkManager/brother.py", line 159, in edit_brother
    print("A required field was missing: {}".format(missing_fields[1]))
IndexError: list index out of range