From 9f0d6a1cea94ad395cba87589fd943c1f77dc18f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 3 Nov 2021 14:01:53 -0700 Subject: datacite importer: dateparser.date.DateDataParser() Perhaps this was a change when upgrading 'dateparser'? --- python/fatcat_tools/importers/datacite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/fatcat_tools') diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py index 6eed8991..39033429 100644 --- a/python/fatcat_tools/importers/datacite.py +++ b/python/fatcat_tools/importers/datacite.py @@ -1191,7 +1191,7 @@ def parse_single_date( return None, None, None if isinstance(value, int): value = str(value) - parser = dateparser.DateDataParser() + parser = dateparser.date.DateDataParser() try: # Results in a dict with keys: date_obj, period, locale. parse_result = parser.get_date_data(value) -- cgit v1.2.3