getnikola / nikola

A static website and blog generator
https://getnikola.com/
MIT License
2.62k stars 449 forks source link

Cannot build, AttributeError error #3623

Closed woile closed 2 years ago

woile commented 2 years ago

Environment

Python Version: 3.10

Nikola Version: 8.2.2

Operating System: MacOS

Description:

I get the following error:

nikola_find_formatter_class
    if alias.lower().contains('html'):
AttributeError: 'str' object has no attribute 'contains'

See gh action: https://github.com/Woile/woile.github.io/runs/6389001428?check_suite_focus=true

Python does not have a contains method for strings, I'm submitting a PR now