Skip to content

Commit 3c42fe5

Browse files
committed
No need to have rescue around a print
1 parent 2c12a43 commit 3c42fe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/exploit/http/server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ def hardcoded_uripath(uri)
220220
on_request_uri(cli, req)
221221
end
222222

223+
vprint_status("Adding hardcoded uri #{uri}")
223224
begin
224-
vprint_status("Adding hardcoded uri #{uri}")
225225
add_resource({'Path' => uri, 'Proc' => proc})
226226
rescue RuntimeError => e
227227
print_error("This module requires a hardcoded uri at #{uri}. Can't run while other modules are using it.")

0 commit comments

Comments
 (0)