If you do the above, you could also have a try/except around these three lines, raising the `UnitsError` from below if it fails.