projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a9f53b
)
Improve error message on invalid output template and abort execution
author
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Thu, 12 Aug 2010 16:40:36 +0000
(18:40 +0200)
committer
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:28:40 +0000
(11:28 +0100)
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index b41b57ea8aec88793b6143c5c3180a19ea901c09..727fadea47dcd9dff1743e7c3ad613453dcc9452 100755
(executable)
--- a/
youtube-dl
+++ b/
youtube-dl
@@
-404,7
+404,8
@@
class FileDownloader(object):
template_dict['ord'] = unicode('%05d' % self._num_downloads)
filename = self.params['outtmpl'] % template_dict
except (ValueError, KeyError), err:
- self.trouble('ERROR: invalid output template or system charset: %s' % str(err))
+ self.trouble(u'ERROR: invalid system charset or erroneous output template')
+ return
if self.params.get('nooverwrites', False) and os.path.exists(filename):
self.to_stderr(u'WARNING: file exists: %s; skipping' % filename)
return