diff options
author | Mohit Solanki <mohitsolanki619@gmail.com> | 2019-09-10 13:26:55 +0530 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2019-09-10 13:15:09 +0200 |
commit | a2d8a5144bd8c0940d9f2593a21aec8bebf7c035 (patch) | |
tree | e7a7874da27245018b7cee9efeccc1622023859c /git/util.py | |
parent | 07657929bc6c0339d4d2e7e1dde1945199374b90 (diff) | |
download | gitpython-a2d8a5144bd8c0940d9f2593a21aec8bebf7c035.tar.gz |
Fix #889: Add DeepSource config and fix some major issues
Diffstat (limited to 'git/util.py')
-rw-r--r-- | git/util.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/git/util.py b/git/util.py index 7ca0564e..b3963d3b 100644 --- a/git/util.py +++ b/git/util.py @@ -98,9 +98,8 @@ def rmtree(path): func(path) # Will scream if still not possible to delete. except Exception as ex: if HIDE_WINDOWS_KNOWN_ERRORS: - raise SkipTest("FIXME: fails with: PermissionError\n %s", ex) - else: - raise + raise SkipTest("FIXME: fails with: PermissionError\n {}".format(ex)) + raise return shutil.rmtree(path, False, onerror) |