[ARVADOS] updated: 3104ab72159ede44043fcd71dc0094c97f9c4251

git at public.curoverse.com git at public.curoverse.com
Wed Jun 24 10:23:01 EDT 2015


Summary of changes:
 sdk/python/tests/performance/performance_profiler.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

       via  3104ab72159ede44043fcd71dc0094c97f9c4251 (commit)
      from  a8a79114bdb1b02d5c071a1efce2796f633976ed (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 3104ab72159ede44043fcd71dc0094c97f9c4251
Author: radhika <radhika at curoverse.com>
Date:   Wed Jun 24 10:22:46 2015 -0400

    6218: update the exception handling.

diff --git a/sdk/python/tests/performance/performance_profiler.py b/sdk/python/tests/performance/performance_profiler.py
index 7f0766e..a36ce25 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()

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list