diff -r 0e9ce897dfdf -r 5318da3497e8 cubicweb/web/views/sparql.py --- a/cubicweb/web/views/sparql.py Thu Dec 19 01:04:07 2019 +0100 +++ b/cubicweb/web/views/sparql.py Thu Dec 19 06:32:16 2019 +0100 @@ -61,11 +61,11 @@ try: qinfo = Sparql2rqlTranslator(self._cw.vreg.schema).translate(sparql) except TypeResolverException as exc: - self.w(self._cw._('can not resolve entity types:') + u' ' + unicode(exc)) + self.w(self._cw._('can not resolve entity types:') + u' ' + str(exc)) except UnsupportedQuery: self.w(self._cw._('we are not yet ready to handle this query')) except xy.UnsupportedVocabulary as exc: - self.w(self._cw._('unknown vocabulary:') + u' ' + unicode(exc)) + self.w(self._cw._('unknown vocabulary:') + u' ' + str(exc)) else: rql, args = qinfo.finalize() if vid == 'sparqlxml':