for consistency with line below, maybe do:
```
else:
    inv['units'] = None
```
It would be weird to end up in a state with no `units` entry.