Add check before creating compare_d

This commit is contained in:
karimpwnz 2021-01-03 21:15:31 +02:00
parent 3c2f91ff60
commit 20e71946b7

View file

@ -225,6 +225,7 @@ class Journal:
# Create datetime object for comparison below
# this approach allows different month formats
if month or day or year:
compare_d = time.parse(f"{month or 1}/{day or 1}/{year or 1}")
result = [