Since it's best practice to limit what's inside a ```try``` statement, this would seem better as:
```
try:
    epoch = ...
except ...
    pass
else:
    self.assert(...)
```