Skip to content

Commit

Permalink
rescue RuntimeError added
Browse files Browse the repository at this point in the history
  • Loading branch information
BorjaMerino committed Dec 11, 2013
1 parent e9edce1 commit e6eeb4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/post/windows/manage/ie_proxypac.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def enable_proxypac(pac)
file = (@remote) ? "#{pac}" : "file://#{pac}"
begin
registry_setvaldata(key,value_auto,file,"REG_SZ")
rescue
rescue RuntimeError
next
end
print_good ("Proxy PAC enabled.") if change_connection(16,'05',key + '\\Connections')
Expand All @@ -112,7 +112,7 @@ def disable_proxy()
begin
registry_setvaldata(key,value_enable,0,"REG_DWORD")
profile = true
rescue
rescue RuntimeError
next
end
end
Expand All @@ -126,7 +126,7 @@ def change_connection(offset,value,key)
binary_data = value_con.unpack('H*')[0]
binary_data[offset,2] = value
registry_setvaldata(key,value_default,["%x" % binary_data.to_i(16)].pack("H*"),"REG_BINARY")
rescue
rescue RuntimeError
return false
end
end
Expand Down

0 comments on commit e6eeb4a

Please sign in to comment.