jquast / x84

A python telnet/ssh server for modern terminals. In spirit of classic software such as ami/x, teleguard, renegade, iniquity.

Home Page:http://x84.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pressing escape in voting booth results in corrupt database

jquast opened this issue · comments

As the return value is not checked for None.

I can't replicate the error. Where does escape ruin the database?

sigh. Build a question. When prompted for a question, press escape.

Next time you try to view it,


  File "x84/bbs/session.py", line 347, in run
    self.runscript(self._script_stack.pop())

  File "x84/bbs/session.py", line 684, in runscript
    value = module.main(*script.args, **script.kwargs)

  File "/usr/local/src/x84/x84/default/main.py", line 252, in main
    gosub(item.script, *item.args, **item.kwargs)

  File "x84/bbs/session.py", line 67, in gosub
    return getsession().runscript(script)

  File "x84/bbs/session.py", line 684, in runscript
    value = module.main(*script.args, **script.kwargs)

  File "/usr/local/src/x84/x84/default/vote.py", line 445, in main
    vote(questionnumber)

  File "/usr/local/src/x84/x84/default/vote.py", line 154, in vote
    term.white + alternatives[(questionnumber, i)] + u'\r\n')

TypeError: coercing to Unicode: need string or buffer, NoneType found


resume main after general exception in vote

i see what you mean, i'll get into it.

presumably fixed (haven't tested).