Skip to content

Commit 1944525

Browse files
committedDec 5, 2021
this should fix makehumancommunity#182 ...
_gitcmd is set to None in library gitutils.py, when it is not found it stay None. When you use isfile with a NoneType ... it crashes. Easily fixed by adding an or statement :)
1 parent 1c4fa87 commit 1944525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎makehuman/download_assets_git.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(self):
8888

8989
self.readOverridesFromEnvironment()
9090

91-
if not os.path.isfile(self._git_command):
91+
if self._git_command is None or not os.path.isfile(self._git_command):
9292
print("\n\n\nCould not find git command\n\n")
9393
sys.exit(1)
9494

0 commit comments

Comments
 (0)
Please sign in to comment.