Skip to content

Commit 4f9c046

Browse files
committed
feat(aient): Update submodule to the latest version
Updates the aient submodule to commit d8bb8ba to incorporate the latest features and improvements. This commit also includes a minor refactoring in the `bot.py` error handling block. The error is now logged before the fallback username is assigned, which improves the logical flow of the exception handling.
1 parent a99e889 commit 4f9c046

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ async def command_bot(update, context, title="", has_command=True):
122122
bot_info = await context.bot.get_me(read_timeout=time_out, write_timeout=time_out, connect_timeout=time_out, pool_timeout=time_out)
123123
bot_info_username = bot_info.username
124124
except Exception as e:
125-
bot_info_username = update_message.reply_to_message.from_user.username
126125
print("error:", e)
126+
bot_info_username = update_message.reply_to_message.from_user.username
127127

128128
if update_message.reply_to_message \
129129
and update_message.from_user.is_bot == False \

0 commit comments

Comments
 (0)