Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tvcam committed Aug 17, 2023
1 parent 30966a7 commit 7fa3261
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/services/usage_report_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,8 @@ def call

report
rescue ActiveRecord::StatementInvalid => e
if e.message.match(/PG::UndefinedTable: ERROR: relation "risk_assessments" does not exist/)
puts e.message
puts "=====================#{organization.short_name} is not properly setup. Skipping... ====================================="
else
raise e
end
puts e.message
puts "=====================#{organization.short_name} is not properly setup. Skipping... ====================================="
end

private
Expand Down

0 comments on commit 7fa3261

Please sign in to comment.