eudicots / Cactus

Static site generator for designers. Uses Python and Django templates.
BSD 3-Clause "New" or "Revised" License
3.46k stars 314 forks source link

Fix: `cactus serve` fails with 'str' object has not attribute 'decode' #216

Closed titusz closed 8 years ago

titusz commented 8 years ago

On win7 with py34 cactus serve fails with a loud: 'str' object has not attribute 'decode'. Not sure if this is a regression as I saw some earlier commits that removed the .decode call. This fix will only try to decode if the path object has a decode method, so it should not introduce any new problems :).

dahrens commented 8 years ago

+1 I can additionally confirm this issue with py34 on linux.

fredbourni commented 8 years ago

+1 with py34 on windows 8.1

krallin commented 8 years ago

Thanks! This is fixed in 3.3.3