diff options
Diffstat (limited to 'tools/allocation_tracking/track_allocations.py')
-rw-r--r-- | tools/allocation_tracking/track_allocations.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/allocation_tracking/track_allocations.py b/tools/allocation_tracking/track_allocations.py index dfc354eb5..d25993800 100644 --- a/tools/allocation_tracking/track_allocations.py +++ b/tools/allocation_tracking/track_allocations.py @@ -76,7 +76,7 @@ class AllocationTracker(object): # then actual code. try: return inspect.stack()[4][1:] - except: + except Exception: return inspect.stack()[0][1:] def check_line_changed(self): @@ -125,7 +125,7 @@ class AllocationTracker(object): try: filename, line, module, code, index = val val = "{0}({1}): {2}".format(filename, line, code[index]) - except: + except Exception: # sometimes this info is not available (from eval()?) val = str(val) f.write(" <TD>{0}</TD>".format(val)) |