##// END OF EJS Templates
in case of empty directory don't redirect to changelog, it causes an redirection loop
marcink -
r3794:222e9432 beta
parent child Browse files
Show More
@@ -37,7 +37,7 b' from rhodecode.lib.helpers import RepoPa'
37 37 from rhodecode.lib.compat import json
38 38 from rhodecode.lib.graphmod import _colored, _dagwalker
39 39 from rhodecode.lib.vcs.exceptions import RepositoryError, ChangesetDoesNotExistError,\
40 ChangesetError, NodeDoesNotExistError
40 ChangesetError, NodeDoesNotExistError, EmptyRepositoryError
41 41 from rhodecode.lib.utils2 import safe_int
42 42 from webob.exc import HTTPNotFound
43 43
@@ -137,6 +137,9 b' class ChangelogController(BaseRepoContro'
137 137 page_revisions = [x.raw_id for x in c.pagination]
138 138 c.comments = c.rhodecode_db_repo.get_comments(page_revisions)
139 139 c.statuses = c.rhodecode_db_repo.statuses(page_revisions)
140 except (EmptyRepositoryError), e:
141 h.flash(str(e), category='warning')
142 return redirect(url('summary_home', repo_name=c.repo_name))
140 143 except (RepositoryError, ChangesetDoesNotExistError, Exception), e:
141 144 log.error(traceback.format_exc())
142 145 h.flash(str(e), category='error')
General Comments 0
You need to be logged in to leave comments. Login now