Skip to content

Commit

Permalink
hotfix: using capitalize to get MessageType
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Dec 20, 2023
1 parent 2a496c3 commit aa57585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connectai/connectai/bot/feishu.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def parse_message(self, message):
content = ""
if isinstance(message, FeishuEventMessage):
try:
message_type = message.event.message.message_type.upper()
message_type = message.event.message.message_type.capitalize()
typ = getattr(MessageType, message_type)
content = message.event.message.content
except Exception as e:
Expand Down

0 comments on commit aa57585

Please sign in to comment.