Skip to content

Commit

Permalink
Handle IndexError
Browse files Browse the repository at this point in the history
  • Loading branch information
drew2a committed Jun 12, 2023
1 parent c80f825 commit d3d639d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tribler/gui/widgets/tablecontentmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,10 @@ def on_row_update_results(response):
item_row = self.item_uid_map.get(get_item_uid(item))
if item_row is None:
return
data_item_dict = index.model().data_items[item_row]
try:
data_item_dict = index.model().data_items[item_row]
except IndexError:
return
data_item_dict.update(response)
self.info_changed.emit([data_item_dict])

Expand Down

0 comments on commit d3d639d

Please sign in to comment.