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

TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' with blog plugin #5881

Closed
4 tasks done
vedranmiletic opened this issue Aug 22, 2023 · 6 comments
Closed
4 tasks done
Labels
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open

Comments

@vedranmiletic
Copy link
Contributor

Context

No response

Bug description

When blog plugin is enabled, the build fails with TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' with blog plugin. This happens on version 9.2.0 and 9.2.1, but did not happen with 9.2.0b3 in the same Python environment.

Related links

Reproduction

blog-nonetype.zip

Steps to reproduce

  1. mkdocs build

Browser

No response

Before submitting

@squidfunk
Copy link
Owner

Thanks for reporting, but sadly, you did not use the info plugin which is mandatory when you create a bug report. Without the plugin, we don't know the necessary information in your environment that might lead to the problem.

We're unable to reproduce it:

mkdocs build
INFO    -  Cleaning site directory
INFO    -  Building documentation to directory: /Users/squidfunk/Downloads/blog-nonetype/site
INFO    -  Documentation built in 0.09 seconds

Please carefully read our bug reporting guidelines and use the info plugin to create a reproduction.

@squidfunk squidfunk added the needs reproduction Issue lacks a minimal reproduction .zip file label Aug 22, 2023
@squidfunk
Copy link
Owner

Nonetheless, I think I might have fixed the issue in 0704046. It's likely related to your Python version, but I can only guess because of the missing information. Please check the latest master to see if the issue is gone.

@vedranmiletic
Copy link
Contributor Author

Thanks for reporting, but sadly, you did not use the info plugin which is mandatory when you create a bug report. Without the plugin, we don't know the necessary information in your environment that might lead to the problem.

I tried including it, but the TypeError occurs before info plugin produces any output so I removed it because it has no effect in this case. Sorry, I should have noted that explicitly in the original report.

Nonetheless, I think I might have fixed the issue in 0704046. It's likely related to your Python version, but I can only guess because of the missing information. Please check the latest master to see if the issue is gone.

It indeed is, thanks!

@squidfunk squidfunk added bug Issue reports a bug resolved Issue is resolved, yet unreleased if open and removed needs reproduction Issue lacks a minimal reproduction .zip file labels Aug 22, 2023
@squidfunk
Copy link
Owner

Okay, fair enough, no problem then ☺️ Great we could solve it so quickly!

@vedranmiletic
Copy link
Contributor Author

Thank you for understanding. Eagerly waiting for 9.2.2 release. 😎

@squidfunk
Copy link
Owner

Released as part of 9.2.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open
Projects
None yet
Development

No branches or pull requests

2 participants