Commit bdc3a41c authored by Bram Schoenmakers's avatar Bram Schoenmakers

Return False when any of the operands is invalid.

parent e71d9adf
......@@ -168,6 +168,9 @@ class OrdinalTagFilter(Filter):
if not operand2:
operand2 = date_string_to_date(self.value)
if not operand1 or not operand2:
return False
else:
try:
operand1 = int(p_todo.tag_value(self.key))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment