# HG changeset patch # User Marcin Kuzminski # Date 2017-05-09 09:11:39 # Node ID aa471562eeae01c1fddc19dba2f76cd4bfb74d36 # Parent ddacc55964a31ad99daa87abc20f992203a61939 backends: make sure the NoNode error uses safe representation of path to avoide unicode errors. diff --git a/rhodecode/lib/vcs/backends/base.py b/rhodecode/lib/vcs/backends/base.py --- a/rhodecode/lib/vcs/backends/base.py +++ b/rhodecode/lib/vcs/backends/base.py @@ -1065,8 +1065,8 @@ class BaseCommit(object): def no_node_at_path(self, path): return NodeDoesNotExistError( - "There is no file nor directory at the given path: " - "'%s' at commit %s" % (path, self.short_id)) + u"There is no file nor directory at the given path: " + u"'%s' at commit %s" % (safe_unicode(path), self.short_id)) def _fix_path(self, path): """