X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/7913f8d5b2d58dbd8db4503378eddb00578e90a7..ef69b26ffcf9185496775bcf73384ea3a5e5691c:/floof/controllers/account.py?ds=sidebyside diff --git a/floof/controllers/account.py b/floof/controllers/account.py index 1dab66d..6c36310 100644 --- a/floof/controllers/account.py +++ b/floof/controllers/account.py @@ -56,9 +56,9 @@ class AccountController(BaseController): # Try to pull a name out of the SReg response sreg_res = SRegResponse.fromSuccessResponse(res) try: - username = sreg_res['nickname'] + username = unicode(sreg_res['nickname']) except: - username = 'Anonymous' + username = u'Anonymous' # Create db records user = User(name=username)