Skip to content

Commit

Permalink
Exception when setting an incorrect printer
Browse files Browse the repository at this point in the history
  • Loading branch information
xmendez committed Sep 25, 2017
1 parent 0959190 commit aed7397
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wfuzz/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,11 @@ def compile(self):
raise FuzzExceptBadOptions(error)

# printer
filename, printer = self.data["printer"]
try:
filename, printer = self.data["printer"]
except ValueError, e:
raise FuzzExceptBadOptions("Bad options: Printer must be specified in the form of ('filename', 'printer')")

if filename:
if printer == "default" or not printer: printer = Facade().sett.get('general', 'default_printer')
self.data["compiled_printer"] = Facade().printers.get_plugin(printer)(filename)
Expand Down

0 comments on commit aed7397

Please sign in to comment.