python-console-snake
python-console-snake copied to clipboard
Fix addstr() _curses.error on Ubuntu
Fixes the following game-breaking error on Ubuntu (python 2.7.6):
File "snake/graphics.py", line 16, in drawTile
screen.addstr(y, x, tile, color)
_curses.error: addstr() returned ERR
See this thread for more information: http://ubuntuforums.org/showthread.php?t=457689&p=3208206#post3208206 Cheers :beers:
Fixes same issue on Debian Jessie as well :+1:
Bump. Is this going to be merged any time soon?
I have encountered the same problem as you. did you solve it
@BENZJ I solved it by adding two 'try' code blocks, see my commit https://github.com/lesander/python-console-snake/commit/dd494ffc9febb2ab1fb41d7f937f0a41d102be21, or the changed file: https://github.com/tancredi/python-console-snake/pull/10/files
This isn't an issue, it's a pull-request (fix) waiting to be merged by @tancredi