Permalink
Browse files

Merge pull request #792 from manuelmeurer/patch-2

Fix sync_clock method, only rescue Excon::Errors::HTTPStatusError that a...
  • Loading branch information...
2 parents 2a4abcd + c88b16a commit 5e8f5517fb3b7f1c219657feded6f485f97e68f9 @geemus geemus committed Mar 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/fog/aws/requests/storage/sync_clock.rb
@@ -8,8 +8,8 @@ class Real
def sync_clock
response = begin
get_service
- rescue => error
- error.respond_to(:response) ? error.response : error.message
+ rescue Excon::Errors::HTTPStatusError => error
+ error.response
end
Fog::Time.now = Time.parse(response.headers['Date'])
end

0 comments on commit 5e8f551

Please sign in to comment.