Don't catch all exceptions in export_ref()

Just in case.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Felipe Contreras
2019-06-03 20:20:57 -05:00
parent c8fff2cd06
commit 4d337cff06

View File

@@ -493,7 +493,7 @@ def export_ref(repo, name, kind, head):
try:
tip = marks.get_tip(ename)
tip = repo[tip]
except:
except (KeyError,error.RepoLookupError):
tip = repo[-1]
revs = gitrange(repo, tip, head)