From 21a304a8738e983449bb864260f1740ad382a2b5 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Sun, 1 Jan 2023 03:25:21 +0000 Subject: [PATCH] Format Python code with psf/black push --- cogs/gpt_3_commands_and_converser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cogs/gpt_3_commands_and_converser.py b/cogs/gpt_3_commands_and_converser.py index 0005998..b5c549d 100644 --- a/cogs/gpt_3_commands_and_converser.py +++ b/cogs/gpt_3_commands_and_converser.py @@ -522,7 +522,9 @@ class GPT3ComCon(commands.Cog, name="GPT3ComCon"): try: # Check if the user's name contains any characters that aren't alphanumeric or spaces if not re.match("^[a-zA-Z0-9 ]*$", ctx.author.name): - raise AttributeError("User's name contains invalid characters. Cannot set the conversation name to their name.") + raise AttributeError( + "User's name contains invalid characters. Cannot set the conversation name to their name." + ) new_prompt = new_prompt.replace("Human:", ctx.author.name + ":") except AttributeError: pass