This try except confused me at first. I now realise it's because u_object can still be None despite line 102. Perhaps 
```python
xunits = u_object is not None and not u_object.units.is_time_reference()
```
is a little clearer, or just add a comment.