Commit 0b8658d8 authored by Michal Čihař's avatar Michal Čihař

Catch errors in case git is not installed

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 3ee51d80
......@@ -70,7 +70,7 @@ if RUNNING_GIT:
# Mark version as devel if it is
if not GIT_RELEASE:
VERSION += '-dev'
except RepositoryException:
except (RepositoryException, OSError):
# Import failed or git has troubles reading
# repo (eg. swallow clone)
RUNNING_GIT = False
......
......@@ -131,12 +131,15 @@ def get_versions():
'2.5',
))
result.append((
'Git',
'http://git-scm.com/',
GitRepository.get_version(),
'1.6',
))
try:
result.append((
'Git',
'http://git-scm.com/',
GitRepository.get_version(),
'1.6',
))
except OSError:
raise Exception('Failed to run git, please install it.')
name = 'South'
url = 'http://south.aeracode.org/'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment