From ecf36d59c9a0ed32c8df86cb133a0820e11d0518 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Thu, 4 Aug 2016 10:49:24 -0500 Subject: [PATCH] Added an error checking in case a tag was provided in the incorrect format --- cogs/tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/tags.py b/cogs/tags.py index 76b36bd..bd20b00 100644 --- a/cogs/tags.py +++ b/cogs/tags.py @@ -36,7 +36,7 @@ class Tags: Format to add a tag is !tag add - """ try: tag = re.search("(.*) - (.*)",result).group(1).strip() - tag_result = "(.*) - (.*)",result).group(2).strip() + tag_result = re.search("(.*) - (.*)",result).group(2).strip() except AttributeError: await self.bot.say("Please provide the format for the tag in: !tag add - ") return