Skip to content

Commit 2a27104

Browse files
committed
Land rapid7#19248, Remove duplicated rescue
Merge branch 'land-19248' into upstream-master
2 parents 9f4c2f6 + 82ca91b commit 2a27104

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/msf/core/handler/reverse_http.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,7 @@ def on_request(cli, req)
400400
resp.body = blob
401401

402402
rescue NoMethodError => e
403-
rescue NoMethodError => e
404-
print_error('Staging failed. This can occur when stageless listeners are used with staged payloads.''')
403+
print_error('Staging failed. This can occur when stageless listeners are used with staged payloads.')
405404
elog('Staging failed. This can occur when stageless listeners are used with staged payloads.', error: e)
406405
return
407406
end

0 commit comments

Comments
 (0)