Fixed annoying printouts polluting the cron logs.

BUG=
TEST=

Review URL: https://webrtc-codereview.appspot.com/447006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1892 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
phoglund@webrtc.org 2012-03-15 11:03:02 +00:00
parent c5adf01d23
commit f7d90041b0

View File

@ -47,8 +47,11 @@ def delete_directory(directory):
os.rmdir(directory)
return True
except OSError as exception:
# The directory probably contains newer files.
print "Could not remove directory %s: reason %s." % (directory, exception)
if "not empty" in str(exception):
# This is normal, ignore it
pass
else:
print "Could not remove directory %s: reason %s." % (directory, exception)
return False