diff --git a/app/jobs/pretalx/import_job.rb b/app/jobs/pretalx/import_job.rb index d0f1ee377195e125aca40a03bed96191f4f3bc91..330081e6ca18470729403dc425364fc63e613419 100644 --- a/app/jobs/pretalx/import_job.rb +++ b/app/jobs/pretalx/import_job.rb @@ -115,7 +115,7 @@ module Pretalx def import_engelsystem_refs(conference) unless translation_angel_id = conference.fetch_translation_angel_id - logger.warn("Could not find translation angel id for #{conference.slug}") + Rails.logger.warn("Could not find translation angel id for #{conference.slug}") return end return unless data = conference.fetch_engelsystem("angeltypes/#{translation_angel_id}/shifts") diff --git a/app/models/conference.rb b/app/models/conference.rb index ba653593040e1abe8b7813e379e494a288c62619..872c56ea722c14ceab0e9c3d3b8a0d4b724e74fb 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -131,6 +131,7 @@ class Conference < ApplicationRecord end def fetch_engelsystem(endpoint) + return nil unless engelsystem_url endpoint_url = engelsystem_url + endpoint Rails.logger.debug("Querying engelsystem API at #{endpoint_url}") response = HTTParty.get(