Skip to content
Permalink
Browse files

Allow post argument of check_conditions to be None.

  • Loading branch information
felixfontein committed Jul 24, 2017
1 parent 37eb408 commit 10d75a0cbb19922f362477c6e37ae8e84eb57d24
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/metadata_extractors.py
@@ -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

0 comments on commit 10d75a0

Please sign in to comment.