From aa5c9f1300088d35393e92dc21dcd62b949984cd Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 21 May 2019 19:45:37 -0700 Subject: yet another JALC edge-case --- python/fatcat_tools/importers/jalc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/fatcat_tools/importers') diff --git a/python/fatcat_tools/importers/jalc.py b/python/fatcat_tools/importers/jalc.py index 24da60ea..8dd4f3e5 100644 --- a/python/fatcat_tools/importers/jalc.py +++ b/python/fatcat_tools/importers/jalc.py @@ -174,7 +174,7 @@ class JalcImporter(EntityImporter): release_date = datetime.datetime.strptime(date['completed-date'], DATE_FMT).date() release_year = release_date.year release_date = release_date.isoformat() - elif len(date) is 4: + elif len(date) is 4 and date.isdigit(): release_year = int(date) pages = None -- cgit v1.2.3