add a guard here:

```python
if self.formatversion is None:
    self.get_format_version()
```