From 01da4a8de3ed8651cc95df6125751e1603dbd14e Mon Sep 17 00:00:00 2001 From: Robert Kuska Date: Mon, 24 Aug 2015 12:40:33 +0200 Subject: Replace StandardError with Exception StandardError was removed in Python3 and instead Exception should be used. Signed-off-by: Robert Kuska Reviewed-By: Jan Cholasta --- ipalib/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/cli.py') diff --git a/ipalib/cli.py b/ipalib/cli.py index b0e138925..44ef61d30 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -1350,7 +1350,7 @@ def run(api): api.log.info('operation aborted') except PublicError as e: error = e - except StandardError as e: + except Exception as e: api.log.exception('%s: %s', e.__class__.__name__, str(e)) error = InternalError() if error is not None: -- cgit