#3507: AddTorrentError not handled in RPCserver
------------------------+----------------------------
  Reporter:  DjLegolas  |      Owner:
      Type:  bug        |     Status:  new
  Priority:  minor      |  Milestone:  needs verified
 Component:  Core       |    Version:  develop
Resolution:             |   Keywords:
------------------------+----------------------------

Comment (by gazpachoking):

 Looked in to this a bit, this seems like the problem: The
 'core.add_torrent_files' method never fails, it returns a list, which
 contains an Exception for each attempted torrent add, (if any Exceptions
 occurred.) When transmitting a success result over RPC, only basic data
 types that rencode can handle are able to be sent, so a list of Exceptions
 causes the above issue.

 Not really sure what the best answer for this is.
 - We could make the exception rebuilding like we do in the failure
 callback work for any Exceptions being sent.
 - We could just raise the error, but that's not a great answer, because
 some torrents were possibly added successfully, and there might be more
 than one error for torrents that weren't added successfully.

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3507#comment:1>
Deluge <https://deluge-torrent.org/>
Deluge Project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/deluge-dev/063.a86f9ee8675b2fb8183dbcf81086c6b4%40deluge-torrent.org.

Reply via email to