From: Jaime Marquínez Ferrándiz Date: Fri, 13 Sep 2013 16:20:09 +0000 (+0200) Subject: Merge pull request #1350 from Jaiz909/description-keyerror-fix X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=535f59bbcf63c98145b8dcbef630a5c9b344db48;p=youtube-dl Merge pull request #1350 from Jaiz909/description-keyerror-fix Fixed issue #1277 KeyError when no description. --- 535f59bbcf63c98145b8dcbef630a5c9b344db48 diff --cc youtube_dl/YoutubeDL.py index b289bd9e2,afce28040..c2f992b8e --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@@ -492,6 -492,8 +492,8 @@@ class YoutubeDL(object) self.report_writedescription(descfn) with io.open(encodeFilename(descfn), 'w', encoding='utf-8') as descfile: descfile.write(info_dict['description']) + except (KeyError, TypeError): - self.report_warning(u'Cannot extract description.') ++ self.report_warning(u'There\'s no description to write.') except (OSError, IOError): self.report_error(u'Cannot write description file ' + descfn) return