From f82463d4e2bf7c652db942608352ab2ce23ec69b Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 10 Aug 2015 18:00:36 +0200 Subject: 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 Reviewed-By: Jan Cholasta --- ipa-client/ipa-install/ipa-client-install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipa-client') 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 -- cgit