From 76f7f907c68fa5bc5d592ecb6ddd818e75140530 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 6 Jul 2012 14:33:40 +0200 Subject: [PATCH] Minor update for Issue #61 --- lib/techniques/error/use.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/techniques/error/use.py b/lib/techniques/error/use.py index 37ffdc252..8232d24c8 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -116,6 +116,7 @@ def __oneShotErrorUse(expression, field): offset += chunk_length else: break + if kb.fileReadMode and output: _ = output try: @@ -169,7 +170,7 @@ def __errorFields(expression, expressionFields, expressionFieldsList, expected=N if not kb.threadContinue: return None - if kb.fileReadMode: + if kb.fileReadMode and output and output.strip(): print elif output is not None and not (threadData.resumed and kb.suppressResumeInfo): dataToStdout("[%s] [INFO] %s: %s\r\n" % (time.strftime("%X"), "resumed" if threadData.resumed else "retrieved", safecharencode(output)))