Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
0b8658d8
Commit
0b8658d8
authored
Nov 06, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Catch errors in case git is not installed
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
3ee51d80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
weblate/__init__.py
weblate/__init__.py
+1
-1
weblate/requirements.py
weblate/requirements.py
+9
-6
No files found.
weblate/__init__.py
View file @
0b8658d8
...
...
@@ -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
...
...
weblate/requirements.py
View file @
0b8658d8
...
...
@@ -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/'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment