aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/vcs/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/storage/vcs/base.py')
-rw-r--r--libbe/storage/vcs/base.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbe/storage/vcs/base.py b/libbe/storage/vcs/base.py
index 3b66019..8a8b3ca 100644
--- a/libbe/storage/vcs/base.py
+++ b/libbe/storage/vcs/base.py
@@ -783,9 +783,11 @@ os.listdir(self.get_path("bugs")):
return default
relpath = self._u_rel_path(path)
try:
- contents = self._vcs_get_file_contents(relpath,revision)
+ contents = self._vcs_get_file_contents(relpath, revision)
except InvalidID, e:
- raise InvalidPath(path=path, root=self.repo, id=id)
+ if InvalidID == None:
+ e.id = InvalidID
+ raise
if contents in [libbe.storage.base.InvalidDirectory,
libbe.util.InvalidObject]:
raise InvalidID(id)