Mercurial > kallithea
diff rhodecode/lib/__init__.py @ 1639:95c3e33ef32e
merged upto rev 019026a8cf67
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 02 Nov 2011 22:19:47 +0200 |
parents | 5498f86ba217 67168195a676 |
children | cd1c21af123a |
line wrap: on
line diff
--- a/rhodecode/lib/__init__.py Wed Nov 02 20:33:02 2011 +0200 +++ b/rhodecode/lib/__init__.py Wed Nov 02 22:19:47 2011 +0200 @@ -394,13 +394,12 @@ try: from vcs import get_repo from vcs.utils.helpers import get_scm - from vcs.exceptions import RepositoryError, VCSError repopath = os.path.join(os.path.dirname(__file__), '..', '..') scm = get_scm(repopath)[0] repo = get_repo(path=repopath, alias=scm) tip = repo.get_changeset() return (tip.revision, tip.short_id) - except (ImportError, RepositoryError, VCSError), err: + except Exception, err: if not quiet: print ("Cannot retrieve rhodecode's revision. Original error " "was: %s" % err)