#3507: AddTorrentError not handled in RPCserver
----------------------------+-------------------
 Reporter:  DjLegolas       |       Type:  bug
   Status:  new             |   Priority:  minor
Milestone:  needs verified  |  Component:  Core
  Version:  develop         |   Keywords:
----------------------------+-------------------
 While checking #3320, I noticed that when adding the same torrent file as
 one of ones in the session, I get the next error, instead on the
 `AddTorrentError` exception.[[br]]
 I'm working on the latest develop branch to this time, in thin client
 mode.[[br]]
 This error is also being forwarded to the client (as expected).

 {{{ #!python
 20:03:48.549 [INFO    ][deluge.core.torrent           :64  ] Adding any
 new trackers to torrent (7a95c54468a18811d641325d494f7ec7760e0e01) already
 in session...
 20:03:48.550 [WARNING ][deluge.core.core              :67  ] Error when
 adding torrent: Torrent already in session
 (7a95c54468a18811d641325d494f7ec7760e0e01).
 20:03:48.550 [WARNING ][deluge.core.rpcserver         :67  ] Error
 occurred when sending message: type <class 'deluge.error.AddTorrentError'>
 not handled.
 20:03:48.550 [ERROR   ][deluge.core.rpcserver         :72  ] type <class
 'deluge.error.AddTorrentError'> not handled
 Traceback (most recent call last):
   File "C:\develops\python\deluge\deluge\core\rpcserver.py", line 155, in
 sendData
     self.transfer_message(data)
   File "C:\develops\python\deluge\deluge\transfer.py", line 53, in
 transfer_message
     body = zlib.compress(rencode.dumps(data))
   File "rencode/rencode.pyx", line 336, in rencode._rencode.dumps
   File "rencode/rencode.pyx", line 316, in rencode._rencode.encode
   File "rencode/rencode.pyx", line 249, in rencode._rencode.encode_list
   File "rencode/rencode.pyx", line 316, in rencode._rencode.encode
   File "rencode/rencode.pyx", line 249, in rencode._rencode.encode_list
   File "rencode/rencode.pyx", line 322, in rencode._rencode.encode
 Exception: type <class 'deluge.error.AddTorrentError'> not handled
 20:03:48.551 [WARNING ][deluge.core.rpcserver         :67  ] An exception
 occurred while sending RPC_ERROR to client. Wrapping it and resending.
 Error to send(causing exception goes next):
 Traceback (most recent call last):
   File "C:\develops\python\deluge\deluge\core\rpcserver.py", line 335, in
 on_success
     self.sendData((RPC_RESPONSE, request_id, result))
   File "C:\develops\python\deluge\deluge\core\rpcserver.py", line 155, in
 sendData
     self.transfer_message(data)
   File "C:\develops\python\deluge\deluge\transfer.py", line 53, in
 transfer_message
     body = zlib.compress(rencode.dumps(data))
   File "rencode/rencode.pyx", line 336, in rencode._rencode.dumps
   File "rencode/rencode.pyx", line 316, in rencode._rencode.encode
   File "rencode/rencode.pyx", line 249, in rencode._rencode.encode_list
   File "rencode/rencode.pyx", line 316, in rencode._rencode.encode
   File "rencode/rencode.pyx", line 249, in rencode._rencode.encode_list
   File "rencode/rencode.pyx", line 322, in rencode._rencode.encode
 Exception: type <class 'deluge.error.AddTorrentError'> not handled
 }}}

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3507>
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/048.f4cbfef9a48e536d74a4aed6eb298fa2%40deluge-torrent.org.

Reply via email to