Skip to content
Snippets Groups Projects
Commit 994f82f2 authored by Vincent Texier's avatar Vincent Texier
Browse files

Catch exception NoneType error in refresh_person

parent 44af6354
No related branches found
No related tags found
No related merge requests found
...@@ -198,5 +198,8 @@ The process to join back the community later will have to be done again.""" ...@@ -198,5 +198,8 @@ The process to join back the community later will have to be done again."""
QMessageBox.Ok) QMessageBox.Ok)
def refresh_person(self, pubkey): def refresh_person(self, pubkey):
index = self.table_community_members.model().sourceModel().person_index(pubkey) if self is None:
self.table_community_members.model().sourceModel().dataChanged.emit(index[0], index[1]) logging.error("community_tab self is None in refresh_person. Watcher connected to a destroyed tab")
else:
index = self.table_community_members.model().sourceModel().person_index(pubkey)
self.table_community_members.model().sourceModel().dataChanged.emit(index[0], index[1])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment