Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 76f7f90

Browse files
committed
Minor update for Issue #61
1 parent 6a05e3f commit 76f7f90

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/techniques/error/use.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def __oneShotErrorUse(expression, field):
116116
offset += chunk_length
117117
else:
118118
break
119+
119120
if kb.fileReadMode and output:
120121
_ = output
121122
try:
@@ -169,7 +170,7 @@ def __errorFields(expression, expressionFields, expressionFieldsList, expected=N
169170
if not kb.threadContinue:
170171
return None
171172

172-
if kb.fileReadMode:
173+
if kb.fileReadMode and output and output.strip():
173174
print
174175
elif output is not None and not (threadData.resumed and kb.suppressResumeInfo):
175176
dataToStdout("[%s] [INFO] %s: %s\r\n" % (time.strftime("%X"), "resumed" if threadData.resumed else "retrieved", safecharencode(output)))

0 commit comments

Comments
 (0)