0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-30 03:33:02 +00:00

Clear up error messages (#734)

This commit is contained in:
Philipp Hagemeister 2013-03-08 20:12:05 +01:00
parent c2e21f2f0d
commit e5edd51de4

View file

@ -372,8 +372,11 @@ def prepare_filename(self, info_dict):
filename = self.params['outtmpl'] % template_dict filename = self.params['outtmpl'] % template_dict
return filename return filename
except (ValueError, KeyError) as err: except KeyError as err:
self.trouble(u'ERROR: invalid system charset or erroneous output template') self.trouble(u'ERROR: Erroneous output template')
return None
except ValueError as err:
self.trouble(u'ERROR: Insufficient system charset ' + repr(preferredencoding()))
return None return None
def _match_entry(self, info_dict): def _match_entry(self, info_dict):