def debug_option():
 if g['debug']:
  g['traceback'].append(traceback.format_exc())

def debug_option ( ) : if g [ 'debug' ] : g [ 'traceback' ] . append ( traceback . format_exc ( ) )
save traceback when run in debug mode .