Mercurial > kallithea
changeset 3037:789f20683559 beta
fix error when diff path is a directory, edge case generated by google bots
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 27 Nov 2012 22:53:06 +0100 |
parents | 31f98c850623 |
children | 16456e7b2231 |
files | rhodecode/controllers/files.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/controllers/files.py Tue Nov 27 22:48:28 2012 +0100 +++ b/rhodecode/controllers/files.py Tue Nov 27 22:53:06 2012 +0100 @@ -46,7 +46,7 @@ from rhodecode.lib.vcs.exceptions import RepositoryError, \ ChangesetDoesNotExistError, EmptyRepositoryError, \ ImproperArchiveTypeError, VCSError, NodeAlreadyExistsError,\ - NodeDoesNotExistError, ChangesetError + NodeDoesNotExistError, ChangesetError, NodeError from rhodecode.lib.vcs.nodes import FileNode from rhodecode.model.repo import RepoModel @@ -495,7 +495,7 @@ else: c.changeset_2 = EmptyChangeset(repo=c.rhodecode_repo) node2 = FileNode(f_path, '', changeset=c.changeset_2) - except RepositoryError: + except (RepositoryError, NodeError): log.error(traceback.format_exc()) return redirect(url('files_home', repo_name=c.repo_name, f_path=f_path))