pnijhara / sih-2019

Loop variable used outside the loop PYL-W0631
Bug risk
Critical
4 years ago4 years old
Using possibly undefined loop variable 'idx'
13    for (idx, time) in enumerate(times):
14        if time == max_time:
15            break
16    return files[idx]