Skip to content
Snippets Groups Projects
Commit 9fa31b17 authored by Anton Sarukhanov's avatar Anton Sarukhanov
Browse files

Don't return empty string on parsing error.

parent b8723db9
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,6 @@ def _get_all_format_strings(date_string, allow_reuse=False,
try:
parsed_datetime = parse(date_string)
except ParserError:
yield ''
return
tokens = DATE_TOKEN_REGEX.findall(date_string)
possible_matches = defaultdict(list) # type: Dict[str, List[str]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment