This can be 2 lines shorter:

```
if e.errno != errno.EEXIST:
    raise e
```