Permalink
Browse files

Fix sync_clock method, only rescue Excon::Errors::HTTPStatusError tha…

…t are known to have a #response method, let all other exceptions bubble up
  • Loading branch information...
1 parent 2a4abcd commit c88b16a008b33127db09beb0394070b6e6359b73 @manuelmeurer manuelmeurer 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 c88b16a

Please sign in to comment.