Fix WindowsError on cleanup when git not found

Fixes #1457
This commit is contained in:
Labrys of Knossos 2018-12-26 20:39:07 -05:00 committed by Lizband
commit 06d7ed735d

View file

@ -53,6 +53,8 @@ def clean_bytecode():
print(result)
except subprocess.CalledProcessError as error:
sys.exit('Error Code: {}'.format(error.returncode))
except OSError as error:
sys.exit('Error: {}'.format(error))
else:
return result
@ -68,6 +70,8 @@ def clean_folders(*paths):
)
except subprocess.CalledProcessError as error:
sys.exit('Error Code: {}'.format(error.returncode))
except OSError as error:
sys.exit('Error: {}'.format(error))
else:
return result