Skip to content

Commit

Permalink
Merge pull request #330 from jaydorsey/rescue_spring_error
Browse files Browse the repository at this point in the history
Rescue from bundler require error
  • Loading branch information
Andrew Nordman authored Apr 14, 2018
2 parents ffb63bb + 2dd59d9 commit 3b096d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dotenv/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
event = ActiveSupport::Notifications::Event.new(*args)
Spring.watch event.payload[:env].filename if Rails.application
end
rescue LoadError
rescue LoadError, ArgumentError
# Spring is not available
end

Expand Down

0 comments on commit 3b096d2

Please sign in to comment.