Skip to content
This repository has been archived by the owner on Jan 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request mastodon#1312 from pixiv/fix/exception_variable_name
Browse files Browse the repository at this point in the history
Fix exception -> message_or_exc
  • Loading branch information
abcang authored Oct 9, 2019
2 parents 45a65f8 + fea3909 commit f9591d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/raven.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def ignore_by_controller(exception_name, network_exceptions)
exception_name = message_or_exc.class.name

# includes invalid characters
return false if exception_name == 'ActiveRecord::RecordInvalid' && exception.message.end_with?('includes invalid characters')
return false if exception_name == 'ActiveRecord::RecordInvalid' && message_or_exc.message.end_with?('includes invalid characters')
return false if ignore_by_sidekiq(exception_name, network_exceptions)
return false if ignore_by_controller(exception_name, network_exceptions)

Expand Down

0 comments on commit f9591d8

Please sign in to comment.