Skip to content

Commit

Permalink
only print if result
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavi Mendez committed Oct 31, 2020
1 parent 52b649e commit 6e791e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wfuzz/plugins/printers/printers.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,9 @@ def header(self, summary):

def result(self, res):
if res._fields:
print(res._field("\n"))
to_print = res._field("\n")
if to_print:
print(to_print)
else:
raise FuzzExceptPluginBadParams(
"You need to supply valid --field or --efield expression for unsing this printer."
Expand Down

0 comments on commit 6e791e4

Please sign in to comment.