Skip to content

Commit

Permalink
Merge pull request #889 from agraul/fix-appdata-missing-exceptions
Browse files Browse the repository at this point in the history
Prevent exceptions when accessing @appdata
  • Loading branch information
agraul committed Oct 29, 2020
2 parents 97347c0 + 93dfafc commit ec8d240
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ def prepare_appdata
leap_appdata(@testing_version)
when "openSUSE:Leap:#{@legacy_release}"
leap_appdata(@legacy_release)
else
{ apps: [], categories: Set.new }
end
end

Expand Down

0 comments on commit ec8d240

Please sign in to comment.