From 18c71ab57c18e1c4ed2098eef10624dbbd6f7745 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 14 Jan 2016 01:25:40 -0500 Subject: [PATCH] [commands] Fix issue where Bot would raise if not given a description. --- discord/ext/commands/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index df4b93db4..4bcf6a430 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -139,7 +139,7 @@ class Bot(GroupMixin, discord.Client): self.extra_events = {} self.cogs = {} self.extensions = {} - self.description = inspect.cleandoc(description) + self.description = inspect.cleandoc(description) if description else '' self.pm_help = pm_help if formatter is not None: if not isinstance(formatter, HelpFormatter):