Can you change that to
```
if release['release'].lower() == 'nightly':
    version = release['version']
    break
```