Skip to content

Commit

Permalink
payload can be None, apparently
Browse files Browse the repository at this point in the history
  • Loading branch information
ramnes committed Jul 26, 2023
1 parent 769749d commit a4ccec6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/chainlit/llama_index/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def on_event_end(
**kwargs: Any,
) -> None:
"""Run when an event ends."""
if payload is None:
return

parent_id = self.root_message.id if self.root_message else None

Expand Down

0 comments on commit a4ccec6

Please sign in to comment.