Skip to content

Commit

Permalink
Merge pull request #6980 from kozlovsky/fix/on_add_torrent_browse_file
Browse files Browse the repository at this point in the history
Fix TypeError in on_add_torrent_browse_file
  • Loading branch information
kozlovsky authored Jul 21, 2022
2 parents 8df1243 + feee408 commit 47224e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tribler/gui/tribler_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,10 @@ def sigint_handler(*_):
upgrade_manager=self.upgrade_manager,
)

def on_test_tribler_gui_exception(self, *args):
def on_test_tribler_gui_exception(self, *_):
raise TriblerGuiTestException("Tribler GUI Test Exception")

def on_test_tribler_core_exception(self, *args):
def on_test_tribler_core_exception(self, *_):
def dummy_callback(_):
pass

Expand Down Expand Up @@ -879,7 +879,7 @@ def on_create_torrent(self, checked):
def on_create_torrent_updates(self, update_dict):
self.tray_show_message(tr("Torrent updates"), update_dict['msg'])

def on_add_torrent_browse_file(self, index):
def on_add_torrent_browse_file(self, *_):
self.raise_window() # For the case when the action is triggered by tray icon
filenames = QFileDialog.getOpenFileNames(
self, tr("Please select the .torrent file"), QDir.homePath(), tr("Torrent files%s") % " (*.torrent)"
Expand Down Expand Up @@ -1124,7 +1124,7 @@ def clicked_menu_button_downloads(self):
self.left_menu_button_downloads.setChecked(True)
self.stackedWidget.setCurrentIndex(PAGE_DOWNLOADS)

def clicked_debug_panel_button(self, *args): # pylint: disable=unused-argument
def clicked_debug_panel_button(self, *_):
if not self.debug_window:
self.debug_window = DebugWindow(self.tribler_settings, self.gui_settings, self.tribler_version)
self.debug_window.show()
Expand Down

0 comments on commit 47224e3

Please sign in to comment.