Skip to content

Commit dd73087

Browse files
committed
fix workflow
1 parent 6930282 commit dd73087

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/news_summarizer_agent.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ env:
4040
NOTIFIER_TYPE: ${{ inputs.notifier_type }}
4141
AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }}
4242
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
43-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
43+
NOTIFIER_SLACK_WEBHOOK_URL: ${{ secrets.NOTIFIER_SLACK_WEBHOOK_URL }}
4444

4545
jobs:
4646
news_summarizer_agent:

template_langgraph/internals/notifiers.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ def notify(self, text: str):
8181
logger.error(
8282
f"Failed to send Slack notification: {response.text}, actual status code: {response.status_code}"
8383
)
84-
raise httpx.HTTPStatusError(f"Failed to send Slack notification: {response.json()}")
84+
raise httpx.HTTPStatusError(
85+
f"Failed to send Slack notification: {response.text}",
86+
request=response.request,
87+
response=response,
88+
)
8589

8690

8791
def get_notifier(settings: Settings = None) -> BaseNotifier:

0 commit comments

Comments
 (0)