cubicweb/_exceptions.py
branch3.26
changeset 12342 57e06dd166d4
parent 11917 c38e13988c10
child 12508 a8c1ea390400
--- a/cubicweb/_exceptions.py	Thu Jun 28 18:19:08 2018 +0200
+++ b/cubicweb/_exceptions.py	Wed Jul 18 11:27:05 2018 +0200
@@ -98,7 +98,7 @@
     def rtypes(self):
         if 'rtypes' in self.kwargs:
             return self.kwargs['rtypes']
-        cstrname = unicode(self.kwargs['cstrname'])
+        cstrname = text_type(self.kwargs['cstrname'])
         cstr = self.session.find('CWUniqueTogetherConstraint', name=cstrname).one()
         return sorted(rtype.name for rtype in cstr.relations)