Skip to content

Commit

Permalink
do not look for status code in runtime errors
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Dec 18, 2012
1 parent f716b0e commit 95f6345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/search_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def searchresult
begin
@packages = Seeker.prepare_result("#{@search_term}", base, @search_project, @exclude_filter, @exclude_debug)
SearchHistory.create :query => @search_term, :count => @packages.size
rescue => e
rescue ActiveXML::Transport::Error => e
if e.code.to_s == "413"
logger.debug("Too many hits, trying exact match for: #{@search_term}")
SearchHistory.create :query => @search_term, :count => 0
Expand Down

0 comments on commit 95f6345

Please sign in to comment.