[GTKUI] Ensure drag-n-drop urlparsed path is unicode
This commit is contained in:
parent
227863faf7
commit
803a33efde
@ -199,7 +199,7 @@ def process_args(args):
|
|||||||
log.debug("Attempting to add file (%s) from external source...", arg)
|
log.debug("Attempting to add file (%s) from external source...", arg)
|
||||||
if urlparse(arg).scheme == "file":
|
if urlparse(arg).scheme == "file":
|
||||||
arg = url2pathname(urlparse(arg).path)
|
arg = url2pathname(urlparse(arg).path)
|
||||||
path = os.path.abspath(arg)
|
path = os.path.abspath(deluge.common.decode_string(arg))
|
||||||
|
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
log.error("No such file: %s", path)
|
log.error("No such file: %s", path)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user