Mercurial > kallithea
changeset 1578:67168195a676 beta
Catch all exception on get_current_revision
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 19 Oct 2011 10:13:10 +0200 |
parents | 534b9c0a5646 |
children | 9b80fb893e7f |
files | rhodecode/lib/__init__.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/__init__.py Wed Oct 19 02:38:31 2011 +0200 +++ b/rhodecode/lib/__init__.py Wed Oct 19 10:13:10 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)