Calculating days between two datetimes, I have:
import datetime
...
days_late = curr_date-last_date
diff_days = days_late.days
print(diff_days)
which prints -9
Then I try to format the output using:
print("Days left: {}").format(diff_days)
I get AttributeError: 'NoneType' object has no attribute 'format'
How can I fix it?