lib/spaceship/client.rb in spaceship-0.32.4 vs lib/spaceship/client.rb in spaceship-0.33.0
- old
+ new
@@ -329,9 +329,12 @@
# Cache the key locally
File.write(itc_service_key_path, @service_key)
return @service_key
+ rescue => ex
+ puts ex.to_s
+ raise AppleTimeoutError.new, "Could not receive latest API key from iTunes Connect, this might be a server issue."
end
#####################################################
# @!group Helpers
#####################################################