From e3f27bc0a0ee12c645171af295310540a3ef9f2c Mon Sep 17 00:00:00 2001 From: David Douard Date: Mon, 30 May 2016 22:00:45 +0200 Subject: [PATCH] new-driver: put the cleanup part in a finally block as it should be --- source/new-driver | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/new-driver b/source/new-driver index 81f4069..33b7177 100755 --- a/source/new-driver +++ b/source/new-driver @@ -68,7 +68,8 @@ def new_driver(): make_patch(gitdir) except Exception as e: print(e) - shutil.rmtree(tmp) + finally: + shutil.rmtree(tmp) # add DRIVER and DRIVER2 entries to configure.ac -- 2.30.2