phrack / ShootOFF-legacy

An open source framework to enhance laser dry fire training.
BSD 4-Clause "Original" or "Old" License
30 stars 17 forks source link

Exception while switching training on and off #56

Closed cbdmaul closed 10 years ago

cbdmaul commented 10 years ago

Occurred after randomly switching between training modes (None, shoot for score, random shoot) while shots are occurring every ~130ms

Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1470, in call return self.func(*args) File "shootoff.py", line 315, in clear_shots self._loaded_training.reset() File "training_protocols\random_shootinit.py", line 79, in reset self.pick_subtargets() File "training_protocols\random_shootinit.py", line 35, in pick_subtarget s chain_length = random.randrange(1, len(self._subtargets)) File "C:\Python27\lib\random.py", line 217, in randrange raise ValueError, "empty range for randrange() (%d,%d, %d)" % (istart, istop , width) ValueError: empty range for randrange() (1,0, -1)