Fix raise call for Python3 support

This commit is contained in:
Thomas Woerner
2017-10-02 17:03:44 +02:00
parent cd5b7711f6
commit 354039321e
7 changed files with 7 additions and 7 deletions

View File

@@ -149,7 +149,7 @@ from six.moves.configparser import RawConfigParser
from ansible.module_utils.basic import AnsibleModule
from ipapython.version import NUM_VERSION, VERSION
if NUM_VERSION < 40400:
raise Exception, "freeipa version '%s' is too old" % VERSION
raise Exception("freeipa version '%s' is too old" % VERSION)
if NUM_VERSION < 30201:
# See ipapython/version.py
IPA_MAJOR,IPA_MINOR,IPA_RELEASE = [ int(x) for x in VERSION.split(".", 2) ]