Skip to content

Commit

Permalink
don't parse date if it's None
Browse files Browse the repository at this point in the history
  • Loading branch information
snopoke committed Jun 11, 2019
1 parent 6141751 commit c469505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commcare_export/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def get_since(self, checkpoint_manager):

if checkpoint_manager:
since = checkpoint_manager.get_time_of_last_checkpoint()
return dateutil.parser.parse(since)
return dateutil.parser.parse(since) if since else None

def get_checkpoint_manager(self, table_names):
"""This get's called before each table is exported and set in the `env`. It is then
Expand Down

0 comments on commit c469505

Please sign in to comment.