p-blomberg/yamosg — Issue #5: Shrimps malfunctioning
Author: p-blomberg
Created: 2011-12-28 11:36:45+00:00
State: open

Reported by project member ext@sidvind.com, Jul 24, 2011
What steps will reproduce the problem?
1. Run server
2. Connect to server using telnet
3. Enter "1 NEWUSER räksmörgås foo"

What is the expected output? What do you see instead?
{{{
Traceback (most recent call last):
File "/home/ext/workspace/yamosg/server/__init__.py", line 116, in command
response = func(self, *args)
File "/home/ext/workspace/yamosg/server/__init__.py", line 476, in NewUser
self.add_player(p)
File "/home/ext/workspace/yamosg/server/__init__.py", line 397, in add_player
self.player_persist()
File "/home/ext/workspace/yamosg/server/__init__.py", line 415, in player_persist
""", d)
ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
('127.0.0.1', 40505) ['1 NEWUSER r\xc3\xa4ksm\xc3\xb6rg\xc3\xa5s foo'] -> ['1 NOT_OK "An unexpected error occured. Try again...']
}}}