Show More
@@ -46,7 +46,7 b' from rhodecode.lib.vcs.conf import setti' | |||||
46 | from rhodecode.lib.vcs.exceptions import RepositoryError, \ |
|
46 | from rhodecode.lib.vcs.exceptions import RepositoryError, \ | |
47 | ChangesetDoesNotExistError, EmptyRepositoryError, \ |
|
47 | ChangesetDoesNotExistError, EmptyRepositoryError, \ | |
48 | ImproperArchiveTypeError, VCSError, NodeAlreadyExistsError,\ |
|
48 | ImproperArchiveTypeError, VCSError, NodeAlreadyExistsError,\ | |
49 | NodeDoesNotExistError, ChangesetError |
|
49 | NodeDoesNotExistError, ChangesetError, NodeError | |
50 | from rhodecode.lib.vcs.nodes import FileNode |
|
50 | from rhodecode.lib.vcs.nodes import FileNode | |
51 |
|
51 | |||
52 | from rhodecode.model.repo import RepoModel |
|
52 | from rhodecode.model.repo import RepoModel | |
@@ -495,7 +495,7 b' class FilesController(BaseRepoController' | |||||
495 | else: |
|
495 | else: | |
496 | c.changeset_2 = EmptyChangeset(repo=c.rhodecode_repo) |
|
496 | c.changeset_2 = EmptyChangeset(repo=c.rhodecode_repo) | |
497 | node2 = FileNode(f_path, '', changeset=c.changeset_2) |
|
497 | node2 = FileNode(f_path, '', changeset=c.changeset_2) | |
498 | except RepositoryError: |
|
498 | except (RepositoryError, NodeError): | |
499 | log.error(traceback.format_exc()) |
|
499 | log.error(traceback.format_exc()) | |
500 | return redirect(url('files_home', repo_name=c.repo_name, |
|
500 | return redirect(url('files_home', repo_name=c.repo_name, | |
501 | f_path=f_path)) |
|
501 | f_path=f_path)) |
General Comments 0
You need to be logged in to leave comments.
Login now