really fix.

This commit is contained in:
Edward Betts 2019-10-09 22:06:15 +01:00
parent 04091988de
commit ac570b05d2

View file

@ -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('/', '_')