Skip to content

Commit

Permalink
make sure date_of_use is not None
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 3e1f3f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion corehq/apps/reports/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ 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)
if date_of_use:
date_of_use = datetime.strptime(date_of_use, ISO_DATETIME_FORMAT)

return version_in_use, date_of_use

0 comments on commit 3e1f3f9

Please sign in to comment.