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

Is 'published' unknown status? #3181

Closed
crohas opened this issue Oct 26, 2018 · 1 comment
Closed

Is 'published' unknown status? #3181

crohas opened this issue Oct 26, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@crohas
Copy link

crohas commented Oct 26, 2018

Environment (if reporting a bug)

Python Version: 3.6.5

Nikola Version: 8.0.1

Operating System: Mac

Description:

Warning messages appear: WARNING: Nikola: The post "posts/xxxx.rst" has the unknown status "published". Valid values are "published", "featured", "private" and "draft"., when I specify published as the status.

I think nikola/post.py#L285 should be elif, how do you think?
https://github.com/getnikola/nikola/blob/master/nikola/post.py#L283-L286

@Kwpolska Kwpolska self-assigned this Oct 26, 2018
@Kwpolska Kwpolska added the minor label Oct 26, 2018
@Kwpolska Kwpolska added this to the v8.0.2 milestone Oct 26, 2018
@Kwpolska
Copy link
Member

Fixed, thanks. (Note that you don’t need to specify status: published at all; that’s why nobody caught this before)

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

No branches or pull requests

2 participants