Commits

Diego Búrigo Zacarão committed 594f157

Fixed another unicode error on locks

Comments (0)

Files changed (1)

transifex/addons/locks/views.py

             response['timeuntil'] = timeuntil(lock.expires)
         except LockError, e:
             response['status'] = "FAILED"
-            response['message'] = str(e)
+            response['message'] = e.message
     else:
         response['status'] = "FAILED"
         response['message'] = _("Sorry, but you need to send a POST request.")