mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
Print a more informative error message if the torrent file doesn't exist
This commit is contained in:
parent
f6195f775f
commit
cfe547b31a
@ -63,6 +63,9 @@ class Command(BaseCommand):
|
||||
# Keep a list of deferreds to make a DeferredList
|
||||
deferreds = []
|
||||
for arg in args:
|
||||
if not os.path.exists(arg):
|
||||
self.console.write("{!error!}%s doesn't exist!" % arg)
|
||||
continue
|
||||
if not os.path.isfile(arg):
|
||||
self.console.write("{!error!}This is a directory!")
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user