I might consider moving os.path.isdir outside the try--only attempt to make the dir if it doesn't already exist. Should eliminate the conditional in the except (and if the default behavior is to propagate the exception up, you can probably leave out the try/except altogether?)

```
if not os.path.isdir(path):
    log.debug("creating %s", path)
    os.makedirs(path)
    log.debug("created %s", path)
```
If, despite your due diligence, makedirs fails, the OSerror will be raised anyway.