We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6260db2 commit 7e63b82Copy full SHA for 7e63b82
src/pycamp_bot/commands/projects.py
@@ -223,6 +223,13 @@ async def ask_project_name(update, context):
223
224
projects = Project.select().join(Pycampista).where(Pycampista.username == username)
225
226
+ if not projects:
227
+ await context.bot.send_message(
228
+ chat_id=update.message.chat_id,
229
+ text="No cargaste ningún proyecto",
230
+ )
231
+ return ConversationHandler.END
232
+
233
keyboard = []
234
for project in projects:
235
keyboard.append([InlineKeyboardButton(project.name, callback_data=f"{PROJECT_NAME_PATTERN}:{project.name}")])
0 commit comments