Skip to content

Commit

Permalink
datetime parsing: No restriction to year, added ValueError exception
Browse files Browse the repository at this point in the history
without typos
  • Loading branch information
emphasize authored Mar 7, 2021
1 parent a3cbd59 commit 8a6d1d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lingua_franca/lang/parse_de.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def date_found():
datestr += " " + wordPrev
start -= 1
used += 1
if wordnext and wordnext[0].isdigit() and not ":" in wordnext:
if wordNext and wordNext[0].isdigit() and not ":" in wordNext:
datestr += " " + wordNext
used += 1
hasYear = True
Expand All @@ -379,7 +379,7 @@ def date_found():
elif wordNext and wordNext[0].isdigit():
datestr += " " + wordNext
used += 1
if wordNextNext and wordNextNext[0].isdigit() and not ":" in wordnext:
if wordNextNext and wordNextNext[0].isdigit() and not ":" in wordNextNext:
datestr += " " + wordNextNext
used += 1
hasYear = True
Expand Down

0 comments on commit 8a6d1d0

Please sign in to comment.