# HG changeset patch # User Marcin Kuzminski # Date 2012-03-22 22:04:18 # Node ID edbf8c9c21d2ca327afdd7114f89a929bfee4b5c # Parent 6a2c0cfb018dc3a62c4a3ca47451004199fe7b53 don't use vcs _rev if rhodecode codes are not under version controll diff --git a/rhodecode/__init__.py b/rhodecode/__init__.py --- a/rhodecode/__init__.py +++ b/rhodecode/__init__.py @@ -31,7 +31,8 @@ VERSION = (1, 3, 4, 'b') try: from rhodecode.lib import get_current_revision _rev = get_current_revision() - VERSION += ('dev%s' % _rev[0],) + if _rev: + VERSION += ('dev%s' % _rev[0],) except ImportError: pass