Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'infohash' happens while surfing through a channel's content. #7321

Closed
drew2a opened this issue Mar 15, 2023 · 1 comment · Fixed by #7323
Closed

KeyError: 'infohash' happens while surfing through a channel's content. #7321

drew2a opened this issue Mar 15, 2023 · 1 comment · Fixed by #7323
Assignees
Milestone

Comments

@drew2a
Copy link
Contributor

drew2a commented Mar 15, 2023

It seems to happen randomly while surfing through a channel's content.

[tribler-gui PID:72884] 2023-03-15 15:37:17,099 - ERROR <error_handler:40> ErrorHandler.gui_error(): Traceback (most recent call last):
  File "/Users/drew2a/Projects/github.com/Tribler/tribler/src/tribler/gui/widgets/tablecontentmodel.py", line 549, in data
    return self.item_txt(index, role, is_editing=(role == Qt.EditRole))
  File "/Users/drew2a/Projects/github.com/Tribler/tribler/src/tribler/gui/widgets/tablecontentmodel.py", line 538, in item_txt
    return f'{item["infohash"][:8]}'
KeyError: 'infohash'
@drew2a
Copy link
Contributor Author

drew2a commented Mar 15, 2023

The exception raises in the code introduced in #7313

if role == Qt.ToolTipRole and column_type == Column.NAME:
return f'{item["infohash"][:8]}'

@drew2a drew2a added this to the 7.13.0 milestone Mar 15, 2023
kozlovsky added a commit to kozlovsky/tribler that referenced this issue Mar 16, 2023
kozlovsky added a commit to kozlovsky/tribler that referenced this issue Mar 16, 2023
kozlovsky added a commit to kozlovsky/tribler that referenced this issue Mar 16, 2023
kozlovsky added a commit to kozlovsky/tribler that referenced this issue Mar 16, 2023
kozlovsky added a commit that referenced this issue Mar 16, 2023
Fixes #7321 KeyError while surfing through a channel's content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants