lib/convox/client.rb in convox_installer-1.0.1 vs lib/convox/client.rb in convox_installer-1.0.2

- old
+ new

@@ -388,10 +388,14 @@ private def load_auth_from_file return {} unless File.exist?(AUTH_FILE) - JSON.parse(File.read(AUTH_FILE)) + begin + JSON.parse(File.read(AUTH_FILE)) + rescue + {} + end end def require_config(required_keys) required_keys.each do |k| raise "#{k} is missing from the config!" unless config[k]