Commit f439e0ba authored by Jérome Perrin's avatar Jérome Perrin

brain path decode

parent 5f153b06
Pipeline #36899 failed with stage
in 0 seconds
......@@ -49,6 +49,10 @@ class ZSQLBrain(Acquisition.Implicit):
path = self.path
# TODO py3: understand why this is bytes sometimes
if not isinstance(path, str):
stack = ''.join(traceback.format_stack())
LOG('Products.ZSQLCatalog.Extentions.zsqlbrain.ZSQLBrain', WARNING,
"wrong getPath at stack %s" % stack)
raise ValueError("wrong type %r !", (path, ))
path = path.decode()
return path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment