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:
parent
c5adf01d23
commit
f7d90041b0
@ -47,8 +47,11 @@ def delete_directory(directory):
|
|||||||
os.rmdir(directory)
|
os.rmdir(directory)
|
||||||
return True
|
return True
|
||||||
except OSError as exception:
|
except OSError as exception:
|
||||||
# The directory probably contains newer files.
|
if "not empty" in str(exception):
|
||||||
print "Could not remove directory %s: reason %s." % (directory, exception)
|
# This is normal, ignore it
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
print "Could not remove directory %s: reason %s." % (directory, exception)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user