Skip to content

Commit

Permalink
Merge pull request #1458 from clinton-hall/hotfix/gitless
Browse files Browse the repository at this point in the history
Fix WindowsError on cleanup when git not found
  • Loading branch information
labrys authored Dec 27, 2018
2 parents c428b57 + 06d7ed7 commit da2c758
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit da2c758

Please sign in to comment.