Custom Query (2449 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (277 - 279 of 2449)

Ticket Resolution Summary Owner Reporter
#1527 Fixed Unhandled Exception in "move_storage" (trying to convert unicode to unicode) Cas idefixx
Description

Deluge 1.3.1_dev (ea22bb0b10d52fa311c2a05f6a47d0893bd1bd78) libtorrent 0.15.5 (r5250) Debian Squeeze

This error occurs with or without AutoAdd? on my deluged, when I want to moved finished downloads on complete. The attached patch fixes the problem on my machine.

03:12:23 [deluge.core.preferencesmanager][WARNING ] Unable to find GeoIP database file!
03:14:27 [twisted                       ][ERROR   ] Unhandled Error
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/deluge-1.3.1-py2.6-linux-i686.egg/deluge/main.py", line 247, in start_daemon
    Daemon(options, args)
  File "/usr/local/lib/python2.6/dist-packages/deluge-1.3.1-py2.6-linux-i686.egg/deluge/core/daemon.py", line 173, in __init__
    reactor.run()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1165, in run
    self.mainLoop()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1174, in mainLoop
    self.runUntilCurrent()
--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 796, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/local/lib/python2.6/dist-packages/deluge-1.3.1-py2.6-linux-i686.egg/deluge/core/torrentmanager.py", line 855, in on_alert_torrent_finished
    torrent.move_storage(move_path)
  File "/usr/local/lib/python2.6/dist-packages/deluge-1.3.1-py2.6-linux-i686.egg/deluge/core/torrent.py", line 812, in move_storage
    dest_u=unicode(dest,"utf-8")
exceptions.TypeError: decoding Unicode is not supported
diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py
index a1a2bdd..77f9f5c 100644
--- a/deluge/core/torrent.py
+++ b/deluge/core/torrent.py
@@ -808,9 +808,13 @@ def connect_peer(self, ip, port):
     def move_storage(self, dest):
         """Move a torrent's storage location"""

-        # Convert path from utf8 to unicode
-        dest_u=unicode(dest,"utf-8")
-
+        try:
+           # Convert path from utf8 to unicode
+           dest_u=unicode(dest,"utf-8")
+       except TypeError:
+           # String is already utf8
+           dest_u=dest
+
         if not os.path.exists(dest_u):
             try:
                 # Try to make the destination path if it doesn't exist
#3008 Fixed Unhandled Error exceptions.KeyError: <type 'datetime.datetime'> Cas adziahel
Description

Repro:

Not sure of exact steps, they were the nothing out of ordinary, I've added a magnet and next thing I know is the torrent list is empty.

Now the torrent list is empty every time, in both GTK and web UI

Classic mode: disabled Version: 1.3.14 (both deluge-gtk and deluged)

Here's deluged backtrace:

Сак 24 20:56:15 server deluged[18426]: [INFO    ] 20:56:15 rpcserver:206 Deluge Client connection made from: 192.168.1.125:60194
Сак 24 20:56:15 server deluged[18426]: Unhandled Error
Сак 24 20:56:15 server deluged[18426]: Traceback (most recent call last):
Сак 24 20:56:15 server deluged[18426]:   File "/usr/lib/python2.7/site-packages/deluge/main.py", line 241, in start_daemon
Сак 24 20:56:15 server deluged[18426]:     Daemon(options, args)
Сак 24 20:56:15 server deluged[18426]:   File "/usr/lib/python2.7/site-packages/deluge/core/daemon.py", line 180, in __init__
Сак 24 20:56:15 server deluged[18426]:     reactor.run()
Сак 24 20:56:15 server deluged[18426]:   File "/usr/lib64/python2.7/site-packages/twisted/internet/base.py", line 1195, in run
Сак 24 20:56:15 server deluged[18426]:     self.mainLoop()
Сак 24 20:56:15 server deluged[18426]:   File "/usr/lib64/python2.7/site-packages/twisted/internet/base.py", line 1204, in mainLoop
Сак 24 20:56:15 server deluged[18426]:     self.runUntilCurrent()
Сак 24 20:56:15 server deluged[18426]: --- <exception caught here> ---
Сак 24 20:56:15 server deluged[18426]:   File "/usr/lib64/python2.7/site-packages/twisted/internet/base.py", line 825, in runUntilCurren
Сак 24 20:56:15 server deluged[18426]:     call.func(*call.args, **call.kw)
Сак 24 20:56:15 server deluged[18426]:   File "/usr/lib/python2.7/site-packages/deluge/core/rpcserver.py", line 324, in dispatch
Сак 24 20:56:15 server deluged[18426]:     self.sendData((RPC_RESPONSE, request_id, ret))
Сак 24 20:56:15 server deluged[18426]:   File "/usr/lib/python2.7/site-packages/deluge/core/rpcserver.py", line 199, in sendData
Сак 24 20:56:15 server deluged[18426]:     self.transport.write(zlib.compress(rencode.dumps(data)))
Сак 24 20:56:15 server deluged[18426]:   File "/usr/lib/python2.7/site-packages/deluge/rencode.py", line 391, in dumps
Сак 24 20:56:15 server deluged[18426]:     encode_func[type(x)](x, r)
Сак 24 20:56:15 server deluged[18426]:   File "/usr/lib/python2.7/site-packages/deluge/rencode.py", line 338, in encode_list
Сак 24 20:56:15 server deluged[18426]:     encode_func[type(i)](i, r)
Сак 24 20:56:15 server deluged[18426]:   File "/usr/lib/python2.7/site-packages/deluge/rencode.py", line 355, in encode_dict
Сак 24 20:56:15 server deluged[18426]:     encode_func[type(v)](v, r)
Сак 24 20:56:15 server deluged[18426]:   File "/usr/lib/python2.7/site-packages/deluge/rencode.py", line 355, in encode_dict
Сак 24 20:56:15 server deluged[18426]:     encode_func[type(v)](v, r)
Сак 24 20:56:15 server deluged[18426]:   File "/usr/lib/python2.7/site-packages/deluge/rencode.py", line 338, in encode_list
Сак 24 20:56:15 server deluged[18426]:     encode_func[type(i)](i, r)
Сак 24 20:56:15 server deluged[18426]:   File "/usr/lib/python2.7/site-packages/deluge/rencode.py", line 350, in encode_dict
Сак 24 20:56:15 server deluged[18426]:     encode_func[type(v)](v, r)
Сак 24 20:56:15 server deluged[18426]: exceptions.KeyError: <type 'datetime.datetime'>
#2087 Invalid Unescaped tracker URLs when loaded from A Magnet URI Cas Raziel.Azrael
Description

When a user opens the edit trackers dialog, trackers may appear in unfriendly human format such as: "udp%3A%2F%2Ftracker.publicbt.com%3A80"

A simple workaround is to call urllib.unquote on the tracker urls when building the list

Note: See TracQuery for help on using queries.