Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'bool' object has no attribute 'replace' #103

Open
jedai47 opened this issue Mar 27, 2022 · 5 comments
Open

'bool' object has no attribute 'replace' #103

jedai47 opened this issue Mar 27, 2022 · 5 comments

Comments

@jedai47
Copy link

jedai47 commented Mar 27, 2022

I have this issue when executing with -u argument

@casmpy
Copy link

casmpy commented Apr 8, 2022

got same error

@davidcbbc
Copy link

any update on this? got the same error

@davidcbbc
Copy link

davidcbbc commented Apr 20, 2022

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
]

@Sahabalam
Copy link

thanks!! it works

@BigW2016
Copy link

BigW2016 commented May 8, 2023

replace in core/plugin.py, 714 row:

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

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

return result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants