Dean Magee05/19/2021, 11:57 PM
def alert_failed(obj, old_state, new_state):
myTeamsMessage = pymsteams.connectorcard(os.getenv("MSTEAMS_WEBHOOK_URL"))
Im trying to grab the text that Python spits out as an error message and include that in my MS Teams message. Any idea how to do that?
myTeamsMessage.title("An error has occurred!")
Chris White05/20/2021, 12:06 AM
which should be an
type; you can then convert to a string using either