Show More
@@ -26,7 +26,7 b'' | |||||
26 | import logging |
|
26 | import logging | |
27 | import traceback |
|
27 | import traceback | |
28 | from collections import defaultdict |
|
28 | from collections import defaultdict | |
29 | from webob.exc import HTTPForbidden, HTTPBadRequest |
|
29 | from webob.exc import HTTPForbidden, HTTPBadRequest, HTTPNotFound | |
30 |
|
30 | |||
31 | from pylons import tmpl_context as c, url, request, response |
|
31 | from pylons import tmpl_context as c, url, request, response | |
32 | from pylons.i18n.translation import _ |
|
32 | from pylons.i18n.translation import _ | |
@@ -204,7 +204,7 b' class ChangesetController(BaseRepoContro' | |||||
204 | except (RepositoryError, ChangesetDoesNotExistError, Exception), e: |
|
204 | except (RepositoryError, ChangesetDoesNotExistError, Exception), e: | |
205 | log.error(traceback.format_exc()) |
|
205 | log.error(traceback.format_exc()) | |
206 | h.flash(str(e), category='error') |
|
206 | h.flash(str(e), category='error') | |
207 | return redirect(url('changeset_home', repo_name=c.repo_name)) |
|
207 | raise HTTPNotFound() | |
208 |
|
208 | |||
209 | c.changes = OrderedDict() |
|
209 | c.changes = OrderedDict() | |
210 |
|
210 |
@@ -33,16 +33,16 b'' | |||||
33 |
|
33 | |||
34 | </head> |
|
34 | </head> | |
35 | <body> |
|
35 | <body> | |
36 |
|
|
36 | <div class="flash_msg"> | |
37 |
|
|
37 | <% messages = h.flash.pop_messages() %> | |
38 |
|
|
38 | % if messages: | |
39 |
|
|
39 | <ul id="flash-messages"> | |
40 |
|
|
40 | % for message in messages: | |
41 |
|
|
41 | <li class="${message.category}_msg">${message}</li> | |
42 |
|
|
42 | % endfor | |
43 |
|
|
43 | </ul> | |
44 |
|
|
44 | % endif | |
45 |
|
|
45 | </div> | |
46 | <div id="login"> |
|
46 | <div id="login"> | |
47 | <div class="table"> |
|
47 | <div class="table"> | |
48 | <div id="main_div"> |
|
48 | <div id="main_div"> |
General Comments 0
You need to be logged in to leave comments.
Login now