Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #820 from akatsoulas/1069945
Browse files Browse the repository at this point in the history
[fix bug 1069945] Handle wrong input in reports url.
  • Loading branch information
akatsoulas committed Sep 23, 2014
2 parents 3d15efa + 269b504 commit 041d7c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remo/reports/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def list_ng_reports(request, mentor=None, rep=None, functional_area_slug=None):
month = month2number(request.GET['month'])
# Make sure that year is an integer too
int(request.GET['year'])
except ValueError:
except (TypeError, ValueError):
raise Http404()
year = request.GET['year']
report_list = report_list.filter(report_date__year=year,
Expand Down

0 comments on commit 041d7c9

Please sign in to comment.