If the code should just ignore the fact it can't create this directory - what is the point of it needing to attempt to create the directory in the first place?  What is its purpose if its superfluous?<div><br></div><div>
<div>try:</div><div>    os.makedirs(cache_dir, 0755)</div><div>except OSError as e:</div><div>     # NOTE(kiall): This is typicaly either permission denied while</div><div>     #              attempting to create the directory, or the directory</div>
<div>     #              already exists. Either way, don't fail.</div><div>     pass</div><div><br></div><div>Cheers,</div><div>Kev</div><div><br><div class="gmail_quote">On 21 March 2012 12:29, Kiall Mac Innes <span dir="ltr"><<a href="mailto:kiall@managedit.ie">kiall@managedit.ie</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This should fix the issue - <a href="https://review.openstack.org/5608" target="_blank">https://review.openstack.org/5608</a><div>
<br></div><div>It duplicates the fix from 5-10 lines below now that the dot files have been moved into a directory.<br clear="all">

<br>Thanks,<br>Kiall<br>
<br></div></blockquote></div>-- <br>Kevin Jackson<br>@itarchitectkev<br>
</div></div>