diff --git a/lingua_franca/lang/parse_de.py b/lingua_franca/lang/parse_de.py index 72427b0d..f6c194e4 100644 --- a/lingua_franca/lang/parse_de.py +++ b/lingua_franca/lang/parse_de.py @@ -777,13 +777,8 @@ def date_found(): datestr = datestr.replace(months[idx], en_month) for idx, en_month in enumerate(en_monthsShort): datestr = datestr.replace(monthsShort[idx], en_month) - - try: - temp = datetime.strptime(datestr, "%B %d").replace(tzinfo=extractedDate.tzinfo) - except ValueError: - # Try again, allowing the year - temp = datetime.strptime(datestr, "%B %d %Y").replace(tzinfo=extractedDate.tzinfo) - + + temp = datetime.strptime(datestr, "%B %d") if not hasYear: temp = temp.replace(year=extractedDate.year) if extractedDate < temp: