diff --git a/ngl/client.py b/ngl/client.py index 94afad2..6c052f1 100644 --- a/ngl/client.py +++ b/ngl/client.py @@ -93,6 +93,7 @@ def _parse_date(date_str: tp.Optional[str]): if not date_str: return None check_date_formats = (r"%d %b, %Y", r"%b %d, %Y", r"%b %Y") + e = None for fmt in check_date_formats: try: return datetime.strptime(date_str, fmt).date()