Changeset - 03028bf372d7
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 13 years ago 2013-03-27 19:38:05
marcin@python-works.com
missing changesets should return 404 not redirect + flash.
It feels more correct.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/changeset.py
Show inline comments
 
@@ -26,7 +26,7 @@
 
import logging
 
import traceback
 
from collections import defaultdict
 
from webob.exc import HTTPForbidden, HTTPBadRequest
 
from webob.exc import HTTPForbidden, HTTPBadRequest, HTTPNotFound
 

	
 
from pylons import tmpl_context as c, url, request, response
 
from pylons.i18n.translation import _
 
@@ -204,7 +204,7 @@ class ChangesetController(BaseRepoContro
 
        except (RepositoryError, ChangesetDoesNotExistError, Exception), e:
 
            log.error(traceback.format_exc())
 
            h.flash(str(e), category='error')
 
            return redirect(url('changeset_home', repo_name=c.repo_name))
 
            raise HTTPNotFound()
 

	
 
        c.changes = OrderedDict()
 

	
0 comments (0 inline, 0 general)