diff options
author | Petr Viktorin <pviktori@redhat.com> | 2015-08-10 18:00:36 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-09-01 11:38:56 +0200 |
commit | f82463d4e2bf7c652db942608352ab2ce23ec69b (patch) | |
tree | 3227b4316c83b19e20bee34577e0845e118647d4 /ipa-client | |
parent | 7ed51586ca8ccaafab6bb11bb5161dc25800fddf (diff) | |
download | freeipa-f82463d4e2bf7c652db942608352ab2ce23ec69b.tar.gz freeipa-f82463d4e2bf7c652db942608352ab2ce23ec69b.tar.xz freeipa-f82463d4e2bf7c652db942608352ab2ce23ec69b.zip |
Remove use of sys.exc_value
sys.exc_value is deprecated since Python 1.5, and was removed in Python 3.
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipa-client')
-rwxr-xr-x | ipa-client/ipa-install/ipa-client-install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index 9352b0049..bce9f3ce1 100755 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -57,13 +57,13 @@ try: from ipapython.ssh import SSHPublicKey from ipalib.rpc import delete_persistent_client_session_data -except ImportError: +except ImportError as e: print >> sys.stderr, """\ There was a problem importing one of the required Python modules. The error was: %s -""" % sys.exc_value +""" % e sys.exit(1) SUCCESS = 0 |