jquast / x84

A python telnet/ssh server for modern terminals. In spirit of classic software such as ami/x, teleguard, renegade, iniquity.
http://x84.readthedocs.org/
Other
373 stars 56 forks source link

AttributeError: 'unicode' object has no attribute 'code' #285

Closed jquast closed 4 years ago

jquast commented 8 years ago
  File "x84/bbs/session.py", line 366, in run
    self.runscript(self._script_stack.pop())

  File "x84/bbs/session.py", line 708, 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 73, in gosub
    return getsession().runscript(script)

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

  File "/usr/local/src/x84/x84/default/ircchat.py", line 579, in main
    if not input_event(term, client, editor):

  File "/usr/local/src/x84/x84/default/ircchat.py", line 485, in input_event
    echo(editor.process_keystroke(inp))

  File "x84/bbs/editor.py", line 399, in process_keystroke
    keystroke.code in self.keyset['refresh']):

AttributeError: 'unicode' object has no attribute 'code'

then,

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

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

  File "/usr/local/src/x84/x84/default/main.py", line 247, in main
    if inp.code == term.KEY_ENTER:

AttributeError: 'unicode' object has no attribute 'code'

i was pasting text, did that do it? hmm