Skip to content

Commit

Permalink
Add missed error state in download agent
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-spext committed Nov 25, 2024
1 parent 0b65341 commit 03dc1dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/director/agents/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def run(self, stream_link: str, name: str = None, *args, **kwargs) -> AgentRespo
text_content.status_message = "Here is the download link"
self.output_message.publish()
else:
text_content.status = MsgStatus.error
text_content.status_message = "Download failed"
return AgentResponse(
status=AgentStatus.ERROR,
message=f"Downloda failed with {download_response}",
Expand Down

0 comments on commit 03dc1dc

Please sign in to comment.