```python
except OSError, err:
    self.log.error("Failed to change back to %s: %s" % (cwd, err))
```