Skip to content

Commit

Permalink
catch all standanderrors
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Aug 22, 2024
1 parent 1dbde9f commit fb4bc62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dashboard/app/models/announcement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def opts
rescue SyntaxError => e # Syntax errors
Rails.logger.warn "Syntax error in announcement file '#{@path}': #{e.message}. Please check the file for proper syntax."
@opts = {}
rescue => e # Other exceptions
rescue StandardError => e # Other exceptions
Rails.logger.warn "Error parsing announcement file '#{@path}': #{e.message}"
@opts = {}
end
Expand Down

0 comments on commit fb4bc62

Please sign in to comment.