mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 00:48:41 +00:00
[GTKUI] Fix import mistake
This commit is contained in:
parent
c619f05f94
commit
7eb037b3f4
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ from twisted.internet import reactor
|
||||||
from twisted.internet.protocol import ClientFactory, Factory, Protocol
|
from twisted.internet.protocol import ClientFactory, Factory, Protocol
|
||||||
|
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
from deluge.common import is_magnet, is_url, windows_check
|
from deluge.common import decode_string, is_magnet, is_url, windows_check
|
||||||
from deluge.configmanager import ConfigManager, get_config_dir
|
from deluge.configmanager import ConfigManager, get_config_dir
|
||||||
from deluge.ui.client import client
|
from deluge.ui.client import client
|
||||||
|
|
||||||
|
@ -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(deluge.common.decode_string(arg))
|
path = os.path.abspath(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…
Add table
Add a link
Reference in a new issue