Patch for an Issue #563

This commit is contained in:
Miroslav Stampar 2013-11-24 15:01:26 +01:00
parent 59b6791faa
commit cda27ec20b

View File

@ -75,4 +75,8 @@ def purge(directory):
logger.debug("deleting the whole directory tree")
os.chdir(os.path.join(directory, ".."))
shutil.rmtree(directory)
try:
shutil.rmtree(directory)
except OSError, ex:
logger.error("problem occurred while removing directory '%s' ('%s')" % (directory, ex))