plone / diazo

Diazo applies a static HTML theme to a dynamic website
http://diazo.org
Other
41 stars 26 forks source link

diazorun: "TypeError: a bytes-like object is required, not 'str'" #79

Open streaps opened 4 years ago

streaps commented 4 years ago

Is this a bug in diazorun? (Diazo 1.4.0)

diazorun --xsl theme.xsl content.html
Traceback (most recent call last):
  File "/usr/bin/diazorun", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.8/site-packages/diazo/run.py", line 157, in main
    out.write(str(output_html))
TypeError: a bytes-like object is required, not 'str'

It works with an -o output.html argument.