Navigation Menu

Skip to content

Commit

Permalink
Allow post argument of check_conditions to be None.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Jul 24, 2017
1 parent 37eb408 commit 10d75a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/metadata_extractors.py
Expand Up @@ -76,7 +76,7 @@ def check_conditions(post, filename: str, conditions: list, config: dict, source
ct == MetaCondition.config_bool and not config.get(arg, False),
ct == MetaCondition.config_present and arg not in config,
ct == MetaCondition.extension and not filename.endswith(arg),
ct == MetaCondition.compiler and post.compiler.name != arg,
ct == MetaCondition.compiler and (post is None or post.compiler.name != arg),
ct == MetaCondition.never
)):
return False
Expand Down

0 comments on commit 10d75a0

Please sign in to comment.