diff --git a/hancho.py b/hancho.py index 663143e..f4bd161 100755 --- a/hancho.py +++ b/hancho.py @@ -491,10 +491,10 @@ async def async_call(self): # If this task failed, we print the error and propagate a Cancel # exception to downstream tasks. except Exception as err: # pylint: disable=broad-except - log(color(255, 128, 128)) - traceback.print_exception(err) - log(color()) - sys.stdout.flush() + if not self.quiet: + log(color(255, 128, 128)) + traceback.print_exception(err) + log(color()) this.tasks_fail += 1 return Cancel() diff --git a/tests/sync_command.hancho b/tests/sync_command.hancho index 89d6658..123b0ac 100644 --- a/tests/sync_command.hancho +++ b/tests/sync_command.hancho @@ -1,7 +1,6 @@ def sync_command(task): - print("hello world") touch(task.files_out[0]) return task.files_out