Skip to content

Commit

Permalink
[api] catch also broken packages when trying to diff
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Nov 8, 2012
1 parent e08887f commit 28cf901
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/app/models/bs_request_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ def sourcediff(opts = {})
def webui_infos
begin
sd = self.sourcediff(view: 'xml', withissues: true)
rescue Suse::Backend::NotFoundError => e
rescue Suse::Backend::HTTPError => e
return { error: e.to_s }
end
return {} if sd.blank?
# Sort files into categories by their ending and add all of them to a hash. We
Expand Down

0 comments on commit 28cf901

Please sign in to comment.