changeset 2249:a3eb31cc4ab4 beta

fixed UnicodeWarning on pushing from sqlalchemy
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 09 May 2012 00:09:49 +0200
parents 72542dc597be
children 3f401db55cb7
files rhodecode/lib/utils.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/utils.py	Tue May 08 23:59:27 2012 +0200
+++ b/rhodecode/lib/utils.py	Wed May 09 00:09:49 2012 +0200
@@ -150,7 +150,7 @@
 
         user_log = UserLog()
         user_log.user_id = user_obj.user_id
-        user_log.action = action
+        user_log.action = safe_unicode(action)
 
         user_log.repository_id = repo_obj.repo_id
         user_log.repository_name = repo_name