@@ -445,7 +445,7 @@ def _duecredit_cite(self):
445
445
r ['path' ] = self .__module__
446
446
due .cite (** r )
447
447
448
- def run (self , cwd = None , ** inputs ):
448
+ def run (self , cwd = None , ignore_exception = None , ** inputs ):
449
449
"""Execute this interface.
450
450
451
451
This interface will not raise an exception if runtime.returncode is
@@ -464,6 +464,10 @@ def run(self, cwd=None, **inputs):
464
464
"""
465
465
from ...utils .profiler import ResourceMonitor
466
466
467
+ # if ignore_exception is not provided, taking self.ignore_exception
468
+ if ignore_exception is None :
469
+ ignore_exception = self .ignore_exception
470
+
467
471
# Tear-up: get current and prev directories
468
472
syscwd = rgetcwd (error = False ) # Recover when wd does not exist
469
473
if cwd is None :
@@ -531,7 +535,7 @@ def run(self, cwd=None, **inputs):
531
535
runtime .traceback_args = ('\n ' .join (
532
536
['%s' % arg for arg in exc_args ]), )
533
537
534
- if not self . ignore_exception :
538
+ if not ignore_exception :
535
539
raise
536
540
finally :
537
541
# This needs to be done always
@@ -919,10 +923,6 @@ def __init__(self, command=None, terminal_output=None, **inputs):
919
923
if terminal_output is not None :
920
924
self .terminal_output = terminal_output
921
925
922
- # Attach terminal_output callback for backwards compatibility
923
- self .inputs .on_trait_change (self ._terminal_output_update ,
924
- 'terminal_output' )
925
-
926
926
@property
927
927
def cmd (self ):
928
928
"""sets base command, immutable"""
@@ -950,9 +950,6 @@ def terminal_output(self, value):
950
950
for v in VALID_TERMINAL_OUTPUT ])))
951
951
self ._terminal_output = value
952
952
953
- def _terminal_output_update (self ):
954
- self .terminal_output = self .terminal_output
955
-
956
953
def raise_exception (self , runtime ):
957
954
raise RuntimeError (
958
955
('Command:\n {cmdline}\n Standard output:\n {stdout}\n '
0 commit comments