We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b25b6e + ce2de8f commit 51896bcCopy full SHA for 51896bc
modules/post/windows/gather/enum_ad_user_comments.rb
@@ -46,15 +46,10 @@ def run
46
if q.nil? or q[:results].empty?
47
return
48
end
49
- rescue ::Exception => e
50
- if e.kind_of?(RuntimeError) or e.kind_of?(RequestError)
51
- # Can't bind or in a network w/ limited accounts
52
- print_error(e.message)
53
- return
54
- else
55
- # Unexpected, raise it
56
- raise $1
57
- end
+ rescue ::RuntimeError, ::Rex::Post::Meterpreter::RequestError => e
+ # Can't bind or in a network w/ limited accounts
+ print_error(e.message)
+ return
58
59
60
# Results table holds raw string data
0 commit comments