[Downloader] Fix patch notes error

Fixes #481
This commit is contained in:
Twentysix 2016-11-21 17:45:51 +01:00
parent fba3a079dd
commit aef46f3820

View File

@ -258,6 +258,8 @@ class Downloader:
patchnote_lang = 'Prolog' patchnote_lang = 'Prolog'
shorten_by = 8 + len(patchnote_lang) shorten_by = 8 + len(patchnote_lang)
for note in self.patch_notes_handler(installed_updated_cogs): for note in self.patch_notes_handler(installed_updated_cogs):
if note is None:
continue
for page in pagify(note, delims=['\n'], shorten_by=shorten_by): for page in pagify(note, delims=['\n'], shorten_by=shorten_by):
await self.bot.say(box(page, patchnote_lang)) await self.bot.say(box(page, patchnote_lang))