Skip to content

Commit 547a175

Browse files
Marc SerratMarc Serrat
authored andcommitted
Avoid long conversation messages
1 parent be5fe09 commit 547a175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connect/resources/fulfillment_automation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def _update_conversation_if_exists(self, conversation, request_id, obj):
186186
# type: (Optional[Conversation], str, object) -> None
187187
if conversation:
188188
try:
189-
conversation.add_message(str(obj))
189+
conversation.add_message(str(obj)[:540])
190190
except TypeError as ex:
191191
self.logger.error('Error updating conversation for request {}: {}'
192192
.format(request_id, ex))

0 commit comments

Comments
 (0)