diff options
Diffstat (limited to 'plac/plac_ext.py')
-rw-r--r-- | plac/plac_ext.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plac/plac_ext.py b/plac/plac_ext.py index b436d06..f58b84f 100644 --- a/plac/plac_ext.py +++ b/plac/plac_ext.py @@ -905,7 +905,8 @@ class Interpreter(object): msg = 'line %d: input: %s\noutput: %s\nexpected: %s\n' % ( no + 1, input, task, output) write(msg) - raise task.etype, task.exc, task.tb + if task.exc: + raise task.etype, task.exc, task.tb def execute(self, lineiter, verbose=False): "Execute a lineiter of commands in a context and print the output" |