epinna/tplmap

'bool' object has no attribute 'replace'

jedai47 opened this issue · 5 comments

I have this issue when executing with -u argument

got same error

any update on this? got the same error

It seems to be a problem with Twig plugin , this workaround worked for me:
Remove the Twig entry from the plugins array at core/checks.py like this:

plugins = [
    Smarty,
    Mako,
    Python,
    Tornado,
    Jinja2,
    Freemarker,
    Velocity,
    Slim,
    Erb,
    Pug,
    Nunjucks,
    Dot,
    Dust,
    Marko,
    Javascript,
    Php,
    Ruby,
    Ejs
]

thanks!! it works

replace in core/plugin.py, 714 row:

from:
return result.replace('\n', '\n')

to:
if (result):
result.replace('\n', '\n')

return result