Nit, we have been following the convention of placing the space at the end of the previous line rather than starting new lines with a space. These 2 lines would change to:

```python
log.warning('Cannot share with any user because SHARE_BY_USERNAME '
                    'and SHARE_BY_EMAIL are both set to False.') 
```