Skip to content

Commit 366ebd6

Browse files
committed
Workaround network problems when loading projects
1 parent b0b505f commit 366ebd6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/pycamp_bot/commands/projects.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ async def naming_project(update, context):
5757
username = update.message.from_user.username
5858
name = update.message.text
5959

60+
if name == '/cargar_proyecto':
61+
await context.bot.send_message(
62+
chat_id=update.message.chat_id,
63+
text="Hubo un problema de conectividad, volvé a ingresar el nombre"
64+
)
65+
return NOMBRE
66+
6067
new_project = Project(name=name)
6168
current_projects[username] = new_project
6269

0 commit comments

Comments
 (0)