500 when failing to find patches from particular person
https://patchwork.freedesktop.org/project/intel-gfx/list/?submitter=1234
results in 500 instead of more graceful 404.
Traceback:
File "/srv/patchwork.freedesktop.org/.virtualenvs/django-1.11/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)
File "/srv/patchwork.freedesktop.org/.virtualenvs/django-1.11/lib/python2.7/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/srv/patchwork.freedesktop.org/.virtualenvs/django-1.11/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/srv/patchwork.freedesktop.org/.virtualenvs/django-1.11/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/srv/patchwork.freedesktop.org/lib/apache2/../../patchwork/views/patch.py" in list
125. view_args={'project_id': project.linkname})
File "/srv/patchwork.freedesktop.org/lib/apache2/../../patchwork/views/__init__.py" in generic_list
44. filters = Filters(request)
File "/srv/patchwork.freedesktop.org/lib/apache2/../../patchwork/filters.py" in __init__
425. f.parse(self.dict)
File "/srv/patchwork.freedesktop.org/lib/apache2/../../patchwork/filters.py" in parse
61. self._set_key(dict[self.param])
File "/srv/patchwork.freedesktop.org/lib/apache2/../../patchwork/filters.py" in _set_key
108. self.person = Person.objects.get(id=int(str))
File "/srv/patchwork.freedesktop.org/.virtualenvs/django-1.11/lib/python2.7/site-packages/django/db/models/manager.py" in manager_method
85. return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/srv/patchwork.freedesktop.org/.virtualenvs/django-1.11/lib/python2.7/site-packages/django/db/models/query.py" in get
380. self.model._meta.object_name
Exception Type: DoesNotExist at /project/intel-gfx/list/
Exception Value: Person matching query does not exist.
Request information:
USER: AnonymousUser
GET:
submitter = u'1234'