chdtest.py: only try to clear temp folder when it exists (nw)

This commit is contained in:
Oliver Stöneberg 2013-06-20 09:55:20 +00:00
parent 7b452af65e
commit 9df9cd93dc

View File

@ -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