Skip to content

Commit 5e8f551

Browse files
author
Wesley Beary
committed
Merge pull request fog#792 from manuelmeurer/patch-2
Fix sync_clock method, only rescue Excon::Errors::HTTPStatusError that a...
2 parents 2a4abcd + c88b16a commit 5e8f551

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fog/aws/requests/storage/sync_clock.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ class Real
88
def sync_clock
99
response = begin
1010
get_service
11-
rescue => error
12-
error.respond_to(:response) ? error.response : error.message
11+
rescue Excon::Errors::HTTPStatusError => error
12+
error.response
1313
end
1414
Fog::Time.now = Time.parse(response.headers['Date'])
1515
end

0 commit comments

Comments
 (0)