diff --git a/CHANGELOG.md b/CHANGELOG.md index de92b2f45..dcaa7de37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog Fab-manager +- Updated dependency to OpenLab +- Prevent the worker from crashing if OpenLab is not reachable in dev - Fix a bug: the notification sent to the project author when a collaborator has confirmed his participation is not sent ## v4.7.8 2021 April 02 diff --git a/Gemfile.lock b/Gemfile.lock index 1eb73dcbe..088465d48 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -154,7 +154,7 @@ GEM hashery (2.1.2) hashie (4.1.0) htmlentities (4.3.4) - httparty (0.18.0) + httparty (0.18.1) mime-types (~> 3.0) multi_xml (>= 0.5.2) i18n (1.8.9) @@ -200,7 +200,7 @@ GEM method_source (1.0.0) mime-types (3.3.1) mime-types-data (~> 3.2015) - mime-types-data (3.2020.0512) + mime-types-data (3.2021.0225) mimemagic (0.3.10) nokogiri (~> 1) rake @@ -241,7 +241,7 @@ GEM omniauth-rails_csrf_protection (0.1.2) actionpack (>= 4.2) omniauth (>= 1.3.1) - openlab_ruby (0.0.4) + openlab_ruby (0.0.5) httparty (~> 0.13) orm_adapter (0.5.0) parallel (1.19.1) diff --git a/app/workers/openlab_worker.rb b/app/workers/openlab_worker.rb index 2281b3acb..c14200236 100644 --- a/app/workers/openlab_worker.rb +++ b/app/workers/openlab_worker.rb @@ -28,5 +28,7 @@ class OpenlabWorker end logger.debug ['Openlab sync', 'RESPONSE ERROR', response.inspect] unless response.success? + rescue Errno::ECONNREFUSED => e + logger.warn "Unable to connect to OpenProject, maybe the dev instance is not running: #{e}" if Rails.env.development? end end