Skip to content

Commit

Permalink
If no version then there won't be a date
Browse files Browse the repository at this point in the history
strptime() argument 1 must be str, not None
  • Loading branch information
jingcheng16 committed Dec 17, 2024
1 parent 29e0b5e commit 228fead
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions corehq/apps/reports/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,6 @@ def get_commcare_version_and_date_from_last_usage(last_submission=None, last_dev

if version:
version_in_use = format_commcare_version(version) if formatted else version

date_of_use = datetime.strptime(date_of_use, ISO_DATETIME_FORMAT)
date_of_use = datetime.strptime(date_of_use, ISO_DATETIME_FORMAT)

return version_in_use, date_of_use

0 comments on commit 228fead

Please sign in to comment.