From fc9fc47a27483e280aa0cba09559163ef010bba6 Mon Sep 17 00:00:00 2001 From: Forest Gregg Date: Thu, 28 Mar 2024 21:37:14 -0400 Subject: [PATCH] handle other error --- camp_fin/management/commands/import_api_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}'") )