Skip to content

Commit 8a91f0d

Browse files
author
kernelsmith
committed
rescue ENOENT as well
1 parent 345c5f3 commit 8a91f0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/windows/gather/screen_spy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def run
109109
end
110110
system(cmd) if cmd
111111
end
112-
rescue IOError => e
112+
rescue IOError, Errno::ENOENT => e
113113
print_error("Error storing screenshot: #{e.class} #{e} #{e.backtrace}")
114114
return
115115
end

0 commit comments

Comments
 (0)