]> git.ipfire.org Git - thirdparty/patchwork.git/commit
views: Return Http404 if patch not found
authorAndriy Gelman <andriy.gelman@gmail.com>
Wed, 11 Mar 2020 03:20:04 +0000 (23:20 -0400)
committerStephen Finucane <stephenfinucane@hotmail.com>
Wed, 11 Mar 2020 12:48:55 +0000 (12:48 +0000)
commit6cbfc2a43f19182942ad425877f0c5a4d3d7200f
treeb0ffe2fe5a4a016e9be559501784e4762c8a2e0f
parentcdf43a770a61fa38dd5a80ef659fcf8e201dcd85
views: Return Http404 if patch not found

Otherwise exception DoesNotExist shows error 500 on Apache

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #343
patchwork/views/patch.py
releasenotes/notes/issue-343-cb591d031cd58b61.yaml [new file with mode: 0644]