Commit 3d1d9e7e authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Convertion to list of strings

parent 943f8ce7
......@@ -146,6 +146,12 @@ def wfcatalog(content):
# launch wfcatalog updates, 100 files for each run
for chunk in grouper(content.splitlines(), 50):"launching WFCatalog update on : %s" % str(chunk))
# Try to convert a list of bytes to list of strings
chunk = [m.decode('utf-8') for m in chunk]
except AttributeError as e:
# chunk is already a list of strings
files = json.dumps(chunk)
out = subprocess.Popen(
Supports Markdown
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