From a2d8a5144bd8c0940d9f2593a21aec8bebf7c035 Mon Sep 17 00:00:00 2001 From: Mohit Solanki Date: Tue, 10 Sep 2019 13:26:55 +0530 Subject: Fix #889: Add DeepSource config and fix some major issues --- git/util.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'git/util.py') 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) -- cgit v1.2.3