Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59b6791 commit cda27ecCopy full SHA for cda27ec
1 file changed
lib/core/purge.py
@@ -75,4 +75,8 @@ def purge(directory):
75
76
logger.debug("deleting the whole directory tree")
77
os.chdir(os.path.join(directory, ".."))
78
- shutil.rmtree(directory)
+
79
+ try:
80
+ shutil.rmtree(directory)
81
+ except OSError, ex:
82
+ logger.error("problem occurred while removing directory '%s' ('%s')" % (directory, ex))
0 commit comments