Skip to content

Commit

Permalink
Add type check for 'path.text' in CSV utility function
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielluiz committed Nov 22, 2024
1 parent 8d38da8 commit 7a5761e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class CSVAgentComponent(LCAgentComponent):
]

def _path(self) -> str:
if isinstance(self.path, Message):
if isinstance(self.path, Message) and isinstance(self.path.text, str):
return self.path.text
return self.path

Expand Down

0 comments on commit 7a5761e

Please sign in to comment.