From 3104ab72159ede44043fcd71dc0094c97f9c4251 Mon Sep 17 00:00:00 2001 From: radhika Date: Wed, 24 Jun 2015 10:22:46 -0400 Subject: [PATCH] 6218: update the exception handling. --- sdk/python/tests/performance/performance_profiler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/python/tests/performance/performance_profiler.py b/sdk/python/tests/performance/performance_profiler.py index 7f0766e3ef..a36ce254dd 100644 --- a/sdk/python/tests/performance/performance_profiler.py +++ b/sdk/python/tests/performance/performance_profiler.py @@ -38,8 +38,8 @@ def profiled(function): pr.enable() try: ret = function(*args, **kwargs) - except: - caught = sys.exc_info()[0] + except Exception as e: + caught = e pr.disable() ps = pstats.Stats(pr, stream=outfile) ps.print_stats() -- 2.30.2