diff --git a/msa_sdk/msa_api.py b/msa_sdk/msa_api.py index a21184c1..8d843b24 100644 --- a/msa_sdk/msa_api.py +++ b/msa_sdk/msa_api.py @@ -106,6 +106,30 @@ def task_error(cls, comment, context, log_response=True): log_response)) sys.exit(1) + @classmethod + def task_warning(cls, comment, context, log_response=True): + """ + + Task warning and print. + + Parameters + ---------- + comment: String + Comment + context: Dictionary + Context + log_response: Bool + Write log to a file + + Returns + ------- + None + + """ + print(cls.process_content(constants.WARNING, comment, context, + log_response)) + sys.exit(2) + @classmethod def task_success(cls, comment, context, log_response=True): """