mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
sys.exit removal for notification/mail.py
This commit is contained in:
@@ -285,7 +285,6 @@ def main():
|
|||||||
msg.attach(part)
|
msg.attach(part)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
module.fail_json(rc=1, msg="Failed to send mail: can't attach file %s: %s" % (file, e))
|
module.fail_json(rc=1, msg="Failed to send mail: can't attach file %s: %s" % (file, e))
|
||||||
sys.exit()
|
|
||||||
|
|
||||||
composed = msg.as_string()
|
composed = msg.as_string()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user