ideally this bit would be in the `else:` branch of the try/except.