Skip to content

Commit e9228ed

Browse files
authored
Merge pull request #108 from andresdelfino/deal_cargar_proyecto_bug
Workaround network problems when loading projects
2 parents 7b87794 + 8c9cab8 commit e9228ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pycamp_bot/commands/projects.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ async def naming_project(update, context):
7272
username = update.message.from_user.username
7373
name = update.message.text
7474

75+
if name == '/cargar_proyecto':
76+
await context.bot.send_message(
77+
chat_id=update.message.chat_id,
78+
text="Hubo un problema de conectividad, volvé a ingresar el nombre"
79+
)
80+
return NOMBRE
7581
user = Pycampista.get_or_create(username=username, chat_id=update.message.chat_id)[0]
7682

7783
new_project = Project(name=name)

0 commit comments

Comments
 (0)