mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
[#2763] [GTKUI] Fix unhandled error with invalid magnet uri
This commit is contained in:
parent
356f224a25
commit
0363dddbcc
1 changed files with 4 additions and 1 deletions
|
@ -228,8 +228,11 @@ class AddTorrentDialog(component.Component):
|
||||||
|
|
||||||
for uri in uris:
|
for uri in uris:
|
||||||
magnet = deluge.common.get_magnet_info(uri)
|
magnet = deluge.common.get_magnet_info(uri)
|
||||||
|
if not magnet:
|
||||||
|
log.error("Invalid magnet: %s", uri)
|
||||||
|
continue
|
||||||
if magnet["info_hash"] in self.infos:
|
if magnet["info_hash"] in self.infos:
|
||||||
log.info("Torrent already in Add Dialog list!")
|
log.info("Torrent already in Add Dialog list: %s", uri)
|
||||||
continue
|
continue
|
||||||
new_row = self.torrent_liststore.append([magnet["info_hash"], magnet["name"], cgi.escape(uri)])
|
new_row = self.torrent_liststore.append([magnet["info_hash"], magnet["name"], cgi.escape(uri)])
|
||||||
self.files[magnet["info_hash"]] = magnet["files_tree"]
|
self.files[magnet["info_hash"]] = magnet["files_tree"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue