aboutsummaryrefslogtreecommitdiff
path: root/cli.py
diff options
context:
space:
mode:
authorGravatar Kiran <75929997+Kiran1689@users.noreply.github.com> 2023-11-16 14:53:25 +0530
committerGravatar GitHub <noreply@github.com> 2023-11-16 10:23:25 +0100
commit22fb0f7bbf1f4c7e87b0781867f8d45dab34025b (patch)
treec052ed1085056b00dd5e99f252081a53f8437eb1 /cli.py
parentAdd fridge, project management labels to do-not-stale list for issues (diff)
downloadAuto-GPT-22fb0f7bbf1f4c7e87b0781867f8d45dab34025b.tar.gz
Auto-GPT-22fb0f7bbf1f4c7e87b0781867f8d45dab34025b.tar.bz2
Auto-GPT-22fb0f7bbf1f4c7e87b0781867f8d45dab34025b.zip
fix(cli): resolve warning caused by \w in regular string (#6236)
Diffstat (limited to 'cli.py')
-rw-r--r--cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli.py b/cli.py
index 540eecc6e..6c45695a8 100644
--- a/cli.py
+++ b/cli.py
@@ -219,7 +219,7 @@ def create(agent_name):
import re
import shutil
- if not re.match("\w*$", agent_name):
+ if not re.match(r"\w*$", agent_name):
click.echo(
click.style(
f"😞 Agent name '{agent_name}' is not valid. It should not contain spaces or special characters other than -_",