Skip to content

Commit

Permalink
Merge pull request #1461 from clinton-hall/hotfix/gitless
Browse files Browse the repository at this point in the history
Fix IOError on cleanup when git not found
  • Loading branch information
labrys authored Dec 27, 2018
2 parents da2c758 + d3d1868 commit 33d9575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def clean_bytecode():
print(result)
except subprocess.CalledProcessError as error:
sys.exit('Error Code: {}'.format(error.returncode))
except OSError as error:
except (IOError, OSError) as error:
sys.exit('Error: {}'.format(error))
else:
return result
Expand All @@ -70,7 +70,7 @@ def clean_folders(*paths):
)
except subprocess.CalledProcessError as error:
sys.exit('Error Code: {}'.format(error.returncode))
except OSError as error:
except (IOError, OSError) as error:
sys.exit('Error: {}'.format(error))
else:
return result
Expand Down

0 comments on commit 33d9575

Please sign in to comment.