##// END OF EJS Templates
Do self.log.error instead print >> sys.stderr
Julia Evans -
Show More
@@ -50,8 +50,8 b' class ExecutePreprocessor(Preprocessor):'
50 try:
50 try:
51 outputs = self.run_cell(self.shell, self.iopub, cell)
51 outputs = self.run_cell(self.shell, self.iopub, cell)
52 except Exception as e:
52 except Exception as e:
53 print >> sys.stderr, "failed to run cell:", repr(e)
53 self.log.error("failed to run cell: " + repr(e))
54 print >> sys.stderr, cell.input
54 self.log.error(str(cell.input))
55 sys.exit(1)
55 sys.exit(1)
56 cell.outputs = outputs
56 cell.outputs = outputs
57 return cell, resources
57 return cell, resources
@@ -97,7 +97,7 b' class ExecutePreprocessor(Preprocessor):'
97 out.evalue = content['evalue']
97 out.evalue = content['evalue']
98 out.traceback = content['traceback']
98 out.traceback = content['traceback']
99 else:
99 else:
100 print >> sys.stderr, "unhandled iopub msg:", msg_type
100 self.log.error("unhandled iopub msg: " + msg_type)
101
101
102 outs.append(out)
102 outs.append(out)
103 return outs
103 return outs
General Comments 0
You need to be logged in to leave comments. Login now