Skip to content

Commit

Permalink
Issue webcompat#1749 - Fixes a bogus part of the code resulting in HT…
Browse files Browse the repository at this point in the history
…TP 500.

Part of the previous switch from new to needstriage webcompat#975
  • Loading branch information
karlcow authored and MDTsai committed Sep 7, 2017
1 parent 3856307 commit 5fc3b9f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions webcompat/api/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,6 @@ def get_issue_category(issue_category):
elif issue_category == 'closed':
params['state'] = 'closed'
return api_request('get', issues_path, params=params)
# Note that 'needstriage' here is primarily used on the homepage.
# For paginated results on the /issues page,
# see /issues/search/needstriage.
# We abort with 301 here because the new endpoint has
# been replaced with needstriage.
elif issue_category == 'new':
abort(301)
else:
# The path doesn’t exist. 404 Not Found.
abort(404)
Expand Down

0 comments on commit 5fc3b9f

Please sign in to comment.