in functions/orchestration-helpers/intermediate/main.py [0:0]
def evaluate_error(message):
"""
Evaluates if a message has an error
Args:
str: message to evaluate
Returns:
raise Exception if the word "exception" found in message
str: original message coming from executor functions
:param message:
"""
if 'error' in message.lower() or 'exception' in message.lower():
raise Exception(message)
return message