diff --git a/camp_fin/management/commands/import_api_data.py b/camp_fin/management/commands/import_api_data.py index b81d692..5c877ee 100644 --- a/camp_fin/management/commands/import_api_data.py +++ b/camp_fin/management/commands/import_api_data.py @@ -58,7 +58,7 @@ def handle(self, *args, **options): def parse_date(self, date_str): try: return parse(date_str).date() - except ParserError: + except (ParserError, TypeError): self.stderr.write( self.style.ERROR(f"Could not parse date from string '{date_str}'") )