##// 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 278 self.log.info("Loading IPython extension: %s" % ext)
279 279 self.shell.extension_manager.load_extension(ext)
280 280 except:
281 self.log.warn("Error in loading extension: %s" % ext +
282 "\nCheck your config files in %s" % self.profile_dir.location
283 )
284 self.shell.showtraceback()
281 msg = ("Error in loading extension: {ext}\n"
282 "Check your config files in {location}".format(
283 ext=ext,
284 location=self.profile_dir.location
285 ))
286 self.log.warn(msg, exc_info=True)
285 287 except:
286 self.log.warn("Unknown error in loading extensions:")
287 self.shell.showtraceback()
288 self.log.warn("Unknown error in loading extensions:", exc_info=True)
288 289
289 290 def init_code(self):
290 291 """run the pre-flight code, specified via exec_lines"""
General Comments 0
You need to be logged in to leave comments. Login now