##// END OF EJS Templates
Return failure, remove comments
Jonathan Frederic -
Show More
@@ -203,9 +203,6 b' class NbConvertApp(BaseIPythonApplication):'
203 "\n\t" + "\n\t".join(get_export_names()),
203 "\n\t" + "\n\t".join(get_export_names()),
204 file=sys.stderr)
204 file=sys.stderr)
205 sys.exit(-1)
205 sys.exit(-1)
206 # except Exception as e:
207 # print("Error: could not export '%s'" % notebook_filename, file=sys.stderr)
208 # print(e, file=sys.stderr)
209 else:
206 else:
210 self.writer.write(output, resources, notebook_name=notebook_name)
207 self.writer.write(output, resources, notebook_name=notebook_name)
211 conversion_success += 1
208 conversion_success += 1
@@ -213,6 +210,7 b' class NbConvertApp(BaseIPythonApplication):'
213 # If nothing was converted successfully, help the user.
210 # If nothing was converted successfully, help the user.
214 if conversion_success == 0:
211 if conversion_success == 0:
215 self.print_help()
212 self.print_help()
213 sys.exit(-1)
216
214
217
215
218 #-----------------------------------------------------------------------------
216 #-----------------------------------------------------------------------------
General Comments 0
You need to be logged in to leave comments. Login now