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

@@ -108,7 +108,7 @@ import logging
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)
try:
from ipalib.install import sysrestore
except ImportError: