From ac570b05d2aba44715b68de8ebe7473bdba0c344 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Wed, 9 Oct 2019 22:06:15 +0100 Subject: [PATCH] really fix. --- depicts/dia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depicts/dia.py b/depicts/dia.py index 3d86ab3..a9722d8 100644 --- a/depicts/dia.py +++ b/depicts/dia.py @@ -6,7 +6,7 @@ import re re_url = re.compile(r'https?://www.dia.org/art/collection/object/(.+)$') def get_html(url): - m = re_url.search(url).group(1).replace('/', '_') + m = re_url.search(url) if not m: return catalog_id = m.group(1).replace('/', '_')