I think this should be

```
if config.get('unit_format') is None:
```