Make irc.py compile on python3

pull/18777/head
Michael Scherer 8 years ago committed by Matt Clay
parent 1f406d4530
commit 9aec480f59

@ -289,7 +289,8 @@ def main():
try:
send_msg(msg, server, port, channel, nick_to, key, topic, nick, color, passwd, timeout, use_ssl, part, style)
except Exception, e:
except Exception:
e = get_exception()
module.fail_json(msg="unable to send to IRC: %s" % e)
module.exit_json(changed=False, channel=channel, nick=nick,
@ -297,4 +298,5 @@ def main():
# import module snippets
from ansible.module_utils.basic import *
from ansible.module_utils.pycompat24 import get_exception
main()

@ -78,7 +78,6 @@
/network/nmcli.py
/network/openvswitch_bridge.py
/network/openvswitch_port.py
/notification/irc.py
/notification/jabber.py
/notification/mail.py
/notification/mqtt.py

Loading…
Cancel
Save