Permalink
Browse files

Also rescue NoMethodErrors when loading formulae

  • Loading branch information...
1 parent d5e3069 commit ebc2f1dccc0bc2eabd7c049523d1c69836007e0c @koraktor committed May 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/repository.rb
View
@@ -282,7 +282,7 @@ class << Formula
keg_only: formula.keg_only? != false,
version: formula.version
}
- rescue SyntaxError
+ rescue NoMethodError, SyntaxError
Rails.logger.warn "Formula '#{name}' could not be imported because of a syntax error."
if defined?(Airbrake) && !Airbrake.configuration.api_key.nil?
Airbrake.notify $!

0 comments on commit ebc2f1d

Please sign in to comment.