Show More
@@ -413,6 +413,8 b' class InteractiveShellApp(Configurable):' | |||
|
413 | 413 | self.log.warning("Error in executing line in user namespace: %s" % |
|
414 | 414 | line) |
|
415 | 415 | self.shell.showtraceback() |
|
416 | if not self.interact: | |
|
417 | self.exit(1) | |
|
416 | 418 | |
|
417 | 419 | # Like Python itself, ignore the second if the first of these is present |
|
418 | 420 | elif self.file_to_run: |
@@ -421,6 +423,7 b' class InteractiveShellApp(Configurable):' | |||
|
421 | 423 | self._exec_file(fname, shell_futures=True) |
|
422 | 424 | except: |
|
423 | 425 | self.shell.showtraceback(tb_offset=4) |
|
426 | if not self.interact: | |
|
424 | 427 | self.exit(1) |
|
425 | 428 | |
|
426 | 429 | def _run_module(self): |
General Comments 0
You need to be logged in to leave comments.
Login now