Skip to content

Commit

Permalink
Fix WindowsError on cleanup when git not found
Browse files Browse the repository at this point in the history
Fixes #1457
  • Loading branch information
labrys committed Dec 27, 2018
1 parent c428b57 commit 06d7ed7
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 06d7ed7

Please sign in to comment.