# HG changeset patch # User Marcin Kuzminski # Date 1319011990 -7200 # Node ID 67168195a676a32dc1c8e9a448344c33e9f1c1bc # Parent 534b9c0a5646c02ea3fd2ad6aef0338953d0d6ba Catch all exception on get_current_revision diff -r 534b9c0a5646 -r 67168195a676 rhodecode/lib/__init__.py --- 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)