mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2024-11-14 08:29:01 +01:00
add friendly error message when the git python module can't be found
also hides the exception
This commit is contained in:
parent
07d0357bee
commit
6d037cc7a4
@ -15,7 +15,8 @@ def repositoryWithPath (path):
|
||||
result = GitRepository(repo, path)
|
||||
except ImportError, exception:
|
||||
print "Failed to import git, please install http://gitorious.org/git-python"
|
||||
raise exception
|
||||
print "Use sudo apt-get install python-git for Ubuntu/Debian"
|
||||
print "Use sudo yum install GitPython for Fedora/RHEL/CentOS"
|
||||
except:
|
||||
result = SnapshotRepository('', path)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user