Show More
@@ -36,7 +36,8 b' from rhodecode.lib.base import BaseRepoC' | |||
|
36 | 36 | from rhodecode.lib.helpers import RepoPage |
|
37 | 37 | from rhodecode.lib.compat import json |
|
38 | 38 | from rhodecode.lib.graphmod import _colored, _dagwalker |
|
39 | from rhodecode.lib.vcs.exceptions import RepositoryError, ChangesetDoesNotExistError | |
|
39 | from rhodecode.lib.vcs.exceptions import RepositoryError, ChangesetDoesNotExistError,\ | |
|
40 | EmptyRepositoryError | |
|
40 | 41 | from rhodecode.lib.utils2 import safe_int |
|
41 | 42 | |
|
42 | 43 | log = logging.getLogger(__name__) |
@@ -80,6 +81,9 b' class ChangelogController(BaseRepoContro' | |||
|
80 | 81 | page_revisions = [x.raw_id for x in collection] |
|
81 | 82 | c.comments = c.rhodecode_db_repo.get_comments(page_revisions) |
|
82 | 83 | c.statuses = c.rhodecode_db_repo.statuses(page_revisions) |
|
84 | except (EmptyRepositoryError), e: | |
|
85 | h.flash(str(e), category='warning') | |
|
86 | return redirect(url('summary_home', repo_name=c.repo_name)) | |
|
83 | 87 | except (RepositoryError, ChangesetDoesNotExistError, Exception), e: |
|
84 | 88 | log.error(traceback.format_exc()) |
|
85 | 89 | h.flash(str(e), category='error') |
General Comments 0
You need to be logged in to leave comments.
Login now