Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHoobar committed Jan 30, 2025
1 parent a78d517 commit f46e3c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions camel/toolkits/whatsapp_toolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def send_message(
response = requests.post(url=url, headers=headers, json=data)
response.raise_for_status()
return response.json()
except requests.exceptions.RequestException as e:
raise e
except Exception as e:
return f"Failed to send message: {e!s}"

Expand Down

0 comments on commit f46e3c6

Please sign in to comment.