# HG changeset patch # User Thomas Arendsen Hein # Date 2006-12-02 20:57:20 # Node ID 6652209d104dd903bbd49dc1352ee750921e9b37 # Parent b9d3e12da485aac9a8b16386991ede5037841935 Don't show traceback on 'hg clone -r unknown ssh://hg.example.com/'. diff --git a/mercurial/sshrepo.py b/mercurial/sshrepo.py --- a/mercurial/sshrepo.py +++ b/mercurial/sshrepo.py @@ -134,14 +134,10 @@ class sshrepository(remoterepository): def lookup(self, key): d = self.call("lookup", key=key) success, data = d[:-1].split(" ", 1) - try: - if int(success): - return bin(data) - else: - raise data - except: - raise - raise hg.RepoError("unexpected response '%s'" % (d[:400] + "...")) + if int(success): + return bin(data) + else: + self.repoerror(data) def heads(self): d = self.call("heads")