Skip to content

Commit

Permalink
Add check on infohash key existing
Browse files Browse the repository at this point in the history
  • Loading branch information
drew2a committed Jan 11, 2021
1 parent cf289e7 commit 3f0adbb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ def _on_selection_changed(self, selected, deselected):
class HealthCheckerMixin:
def check_torrent_health(self, data_item, forced=False):
# TODO: stop triggering multiple checks over a single infohash by e.g. selection and click signals
if 'infohash' not in data_item:
return

infohash = data_item[u'infohash']

if u'health' not in self.model.column_position:
Expand Down

0 comments on commit 3f0adbb

Please sign in to comment.