##// END OF EJS Templates
DEV: Show tracebacks for failed extensions when running without stdout.
Scott Sanderson -
Show More
@@ -278,13 +278,14 b' class InteractiveShellApp(Configurable):'
278 self.log.info("Loading IPython extension: %s" % ext)
278 self.log.info("Loading IPython extension: %s" % ext)
279 self.shell.extension_manager.load_extension(ext)
279 self.shell.extension_manager.load_extension(ext)
280 except:
280 except:
281 self.log.warn("Error in loading extension: %s" % ext +
281 msg = ("Error in loading extension: {ext}\n"
282 "\nCheck your config files in %s" % self.profile_dir.location
282 "Check your config files in {location}".format(
283 )
283 ext=ext,
284 self.shell.showtraceback()
284 location=self.profile_dir.location
285 ))
286 self.log.warn(msg, exc_info=True)
285 except:
287 except:
286 self.log.warn("Unknown error in loading extensions:")
288 self.log.warn("Unknown error in loading extensions:", exc_info=True)
287 self.shell.showtraceback()
288
289
289 def init_code(self):
290 def init_code(self):
290 """run the pre-flight code, specified via exec_lines"""
291 """run the pre-flight code, specified via exec_lines"""
General Comments 0
You need to be logged in to leave comments. Login now