Skip to content

Commit ee57c71

Browse files
author
Brent Cook
committed
Land rapid7#8470, remove broken check for invalid options
2 parents ea60631 + b7620e1 commit ee57c71

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/msf/ui/console/module_command_dispatcher.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,6 @@ def check_simple(instance=nil)
240240
rescue ::RuntimeError => e
241241
# Some modules raise RuntimeError but we don't necessarily care about those when we run check()
242242
elog("#{e.message}\n#{e.backtrace.join("\n")}")
243-
rescue Msf::OptionValidateError => e
244-
print_error("{peer} - Check failed: #{e.message}")
245-
elog("#{e.message}\n#{e.backtrace.join("\n")}")
246243
rescue ::Exception => e
247244
print_error("Check failed: #{e.class} #{e}")
248245
elog("#{e.message}\n#{e.backtrace.join("\n")}")

0 commit comments

Comments
 (0)