@@ -35,23 +35,26 @@ def _init_externals():
35
35
36
36
#{ Imports
37
37
38
- from git .config import GitConfigParser # @NoMove @IgnorePep8
39
- from git .objects import * # @NoMove @IgnorePep8
40
- from git .refs import * # @NoMove @IgnorePep8
41
- from git .diff import * # @NoMove @IgnorePep8
42
- from git .exc import * # @NoMove @IgnorePep8
43
- from git .db import * # @NoMove @IgnorePep8
44
- from git .cmd import Git # @NoMove @IgnorePep8
45
- from git .repo import Repo # @NoMove @IgnorePep8
46
- from git .remote import * # @NoMove @IgnorePep8
47
- from git .index import * # @NoMove @IgnorePep8
48
- from git .util import ( # @NoMove @IgnorePep8
49
- LockFile ,
50
- BlockingLockFile ,
51
- Stats ,
52
- Actor ,
53
- rmtree ,
54
- )
38
+ from git .exc import * # @NoMove @IgnorePep8
39
+ try :
40
+ from git .config import GitConfigParser # @NoMove @IgnorePep8
41
+ from git .objects import * # @NoMove @IgnorePep8
42
+ from git .refs import * # @NoMove @IgnorePep8
43
+ from git .diff import * # @NoMove @IgnorePep8
44
+ from git .db import * # @NoMove @IgnorePep8
45
+ from git .cmd import Git # @NoMove @IgnorePep8
46
+ from git .repo import Repo # @NoMove @IgnorePep8
47
+ from git .remote import * # @NoMove @IgnorePep8
48
+ from git .index import * # @NoMove @IgnorePep8
49
+ from git .util import ( # @NoMove @IgnorePep8
50
+ LockFile ,
51
+ BlockingLockFile ,
52
+ Stats ,
53
+ Actor ,
54
+ rmtree ,
55
+ )
56
+ except GitError as exc :
57
+ raise ImportError ('%s: %s' % (exc .__class__ .__name__ , exc ))
55
58
56
59
#} END imports
57
60
0 commit comments