Skip to content

Commit

Permalink
handle other error
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Mar 29, 2024
1 parent 97050bc commit fc9fc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camp_fin/management/commands/import_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'")
)
Expand Down

0 comments on commit fc9fc47

Please sign in to comment.