Skip to content

Commit

Permalink
Fixed exporting torrent TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink committed Dec 1, 2020
1 parent d7504c9 commit 6e1e1f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tribler-gui/tribler_gui/debug_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ def on_memory_dump_button_clicked(self, dump_core):
)
if dump_core:
self.rest_request = TriblerNetworkRequest(
"debug/memory/dump", lambda data, _: self.on_memory_dump_data_available(filename, data)
"debug/memory/dump", lambda data: self.on_memory_dump_data_available(filename, data)
)
elif scanner:
scanner.dump_all_objects(os.path.join(self.export_dir, filename))
Expand Down
2 changes: 1 addition & 1 deletion src/tribler-gui/tribler_gui/widgets/downloadspage.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def on_export_download_dialog_done(self, action):
filename = self.dialog.dialog_widget.dialog_input.text()
TriblerFileDownloadRequest(
"downloads/%s/torrent" % selected_item[0].download_info['infohash'],
lambda data, _: self.on_export_download_request_done(filename, data),
lambda data: self.on_export_download_request_done(filename, data),
)

self.dialog.close_dialog()
Expand Down

0 comments on commit 6e1e1f5

Please sign in to comment.