Merge branch 'tags' into search
[zzz-floof.git] / floof / controllers / account.py
index 1dab66d..6c36310 100644 (file)
@@ -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)