aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-01-14 01:25:40 -0500
committerRapptz <[email protected]>2016-01-14 01:25:40 -0500
commit18c71ab57c18e1c4ed2098eef10624dbbd6f7745 (patch)
tree9c9cd846d9f41207d1013c491717a2e1c1138227
parent[commands] Cleanup descriptions being passed. (diff)
downloaddiscord.py-18c71ab57c18e1c4ed2098eef10624dbbd6f7745.tar.xz
discord.py-18c71ab57c18e1c4ed2098eef10624dbbd6f7745.zip
[commands] Fix issue where Bot would raise if not given a description.
-rw-r--r--discord/ext/commands/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index df4b93db..4bcf6a43 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):