diff --git a/src/regtests/chdman/chdtest.py b/src/regtests/chdman/chdtest.py index 438ec176415..c7c5f3e2266 100644 --- a/src/regtests/chdman/chdtest.py +++ b/src/regtests/chdman/chdtest.py @@ -129,8 +129,9 @@ if not os.path.exists(inputPath): if not os.path.exists(outputPath): print outputPath + " does not exist" sys.exit(1) - -shutil.rmtree(tempPath) + +if os.path.exists(tempPath): + shutil.rmtree(tempPath) failure = False