Skip to content

Commit

Permalink
GRN2-265: No longer throws 500 if provider not included (bigbluebutto…
Browse files Browse the repository at this point in the history
…n#944)

* No longer throws 500 if provider not included

* Rubocop fix
  • Loading branch information
farhatahmad authored Feb 14, 2020
1 parent 3641f1b commit 3125827
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ def check_provider_exists
logger.error "Error in retrieve provider info: #{e}"
# Use the default site settings
@user_domain = "greenlight"
@settings = Setting.find_or_create_by(provider: @user_domain)

if e.message.eql? "No user with that id exists"
render "errors/greenlight_error", locals: { message: I18n.t("errors.not_found.user_not_found.message"),
Expand Down

0 comments on commit 3125827

Please sign in to comment.