Closed ticklemynausea closed 8 years ago
Maybe I should add that by "running via source" I mean using the command python run_item_tracker_directly.py
I somehow ran into that the other day but didn't manage to reproduce it/debug it, so hopefully someone did :)
Now that I think about it the actual issue here seems to be that __reflow
assumes that state
is not none (if there is no state there is no item to reflow), so one other way to fix that would be to call the function on line 116 only if state
is not none, like on line 163.
Anyway with your fix the function does nothing if there is no state, so it's safer!
When running via source (I did not attempt to build the project), it exited with the following exception:
The simple fix in this commit made everything run correctly.
Environment details: Windows 10 Python 2.7.11 (Anaconda 4.0.0 64-bit)) Pygame 1.9.2a0 (from https://conda.binstar.org/krisvanneste/win-64/pygame-1.9.2a0-py27_0.tar.bz2)