From d4610c4911395be11bb501738ffaef3a9c2d3c20 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Tue, 24 Jul 2018 16:49:00 -0500 Subject: [PATCH] Fix bug where an unset button_config causes a crash on build --- lib/tasks/settings.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/settings.rake b/lib/tasks/settings.rake index d24c670b..bcfa2b53 100644 --- a/lib/tasks/settings.rake +++ b/lib/tasks/settings.rake @@ -16,7 +16,7 @@ namespace :settings do cdn_url= URI(Settings.cdn.url) cdn_url.port = Settings.cdn.port if Settings.cdn.port cdn_url = cdn_url.to_s - if (Settings.button_config.url) + if (Settings.button_config&.url) cdn_url= URI(Settings.button_config.url).to_s end c = {button:{url:cdn_url,css:"#{cdn_url}/css/donate-button.v2.css"}}