Changeset 68
- Timestamp:
- 06/07/08 10:24:43 (7 weeks ago)
- Files:
-
- 1 modified
-
trunk/scripts/pycg (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/pycg
r67 r68 133 133 print('Starting trace') 134 134 135 reraise = False 136 135 137 pycallgraph.start_trace( 136 138 filter_func=filter_func, … … 143 145 # Ignore it when the script calls os.exit() so we can still make the graph. 144 146 pass 147 except Exception, e: 148 reraise = True 149 if not options.quiet: 150 print('Caught exception, will raise after graph is made.') 145 151 146 152 options = __pygc_options.pop() … … 150 156 151 157 pycallgraph.make_dot_graph(options.image_file, options.format, options.tool) 158 159 if reraise: 160 if not options.quiet: 161 print('Done and raising the caught exception:') 162 raise e 152 163 153 164 if not options.quiet: