You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "d:\Documents\Uni docs\Year 1\Special Term\Orbital\Orbital-Pibbage\BotController\BotCommands.py", line 317, in handle_arcade_gen
elif len(context.user_data["arcade_gen_string"]) < int(number):
ValueError: invalid literal for int() with base 10: ' Arkham Knight'
This is because Batman:Arkam Knight is parsed in as a word in make_keyboard ArcadeGen
for i, word in enumerate(word_list):
if i % row_size == 0:
row = []
keyboard.append(row)
if final_keyboard:
row.append(InlineKeyboardButton(word, callback_data=f"{BotInitiatorConstants.SEND_ARCADE_PROMPT}:{i}"))
else:
row.append(InlineKeyboardButton(word, callback_data=f"{BotInitiatorConstants.SEND_ARCADE_WORD}:{word}:{number}"))
return InlineKeyboardMarkup(keyboard)
The text was updated successfully, but these errors were encountered:
File "d:\Documents\Uni docs\Year 1\Special Term\Orbital\Orbital-Pibbage\BotController\BotCommands.py", line 317, in handle_arcade_gen
elif len(context.user_data["arcade_gen_string"]) < int(number):
ValueError: invalid literal for int() with base 10: ' Arkham Knight'
This is because Batman:Arkam Knight is parsed in as a word in make_keyboard ArcadeGen
The text was updated successfully, but these errors were encountered: