diff --git a/git/__init__.py b/git/__init__.py index 74609e79f..e98806d46 100644 --- a/git/__init__.py +++ b/git/__init__.py @@ -79,5 +79,8 @@ def refresh(path=None): #} END initialize git executable path ################# -refresh() +try: + refresh() +except Exception as exc: + raise ImportError('Failed to initialize: {0}'.format(exc)) #################