From 8e91106aca09dac4caf9ac350ed70eb0d66bc5da Mon Sep 17 00:00:00 2001 From: Sandip Pandey Date: Tue, 26 Mar 2019 16:00:06 +0100 Subject: [PATCH] Fixed torrentdetails page crash --- TriblerGUI/widgets/torrentdetailstabwidget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TriblerGUI/widgets/torrentdetailstabwidget.py b/TriblerGUI/widgets/torrentdetailstabwidget.py index 885ab06d6de..1aa2bba6823 100644 --- a/TriblerGUI/widgets/torrentdetailstabwidget.py +++ b/TriblerGUI/widgets/torrentdetailstabwidget.py @@ -50,7 +50,7 @@ def initialize_details_widget(self): self.check_health_button.clicked.connect(self.on_check_health_clicked) def on_torrent_info(self, torrent_info): - if not torrent_info: + if not torrent_info or "torrent" not in torrent_info: return self.setTabEnabled(1, True)