Allow missing/broken GitPython

`import git` can fail badly with a broken xcode installation, so
we let blenderbim run anyway
This commit is contained in:
Bruno Postle
2023-05-21 09:11:26 +01:00
parent a8d20717cb
commit 2c69e3c44c
+4 -1
View File
@@ -3,7 +3,10 @@ import re
# allows git import even if git executable isn't found
os.environ["GIT_PYTHON_REFRESH"] = "quiet"
import git
try:
import git
except:
print("Warning: GitPython not available.")
import bpy
from blenderbim.bim.ifc import IfcStore
import blenderbim.tool as tool