Skip to content

Commit 0f620f5

Browse files
committed
Fix Uninitialized Constant RequestError
[SeeRM rapid7#8765] NameError uninitialized constant
1 parent 18816f3 commit 0f620f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/windows/gather/enum_ad_user_comments.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def run
4747
return
4848
end
4949
rescue ::Exception => e
50-
if e.kind_of?(RuntimeError) or e.kind_of?(RequestError)
50+
if e.kind_of?(RuntimeError) or e.kind_of?(::Rex::Post::Meterpreter::RequestError)
5151
# Can't bind or in a network w/ limited accounts
5252
print_error(e.message)
5353
return

0 commit comments

Comments
 (0)