mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
Print a more informative error message if the torrent file doesn't exist
This commit is contained in:
parent
4d2b7df49d
commit
7aba1af0b2
1 changed files with 3 additions and 0 deletions
|
@ -63,6 +63,9 @@ class Command(BaseCommand):
|
||||||
# Keep a list of deferreds to make a DeferredList
|
# Keep a list of deferreds to make a DeferredList
|
||||||
deferreds = []
|
deferreds = []
|
||||||
for arg in args:
|
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):
|
if not os.path.isfile(arg):
|
||||||
self.console.write("{!error!}This is a directory!")
|
self.console.write("{!error!}This is a directory!")
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue