1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

fix typo: undo unintended change from warning in earlier commit, stick with 'not items', fixes issue with 404s mentioned in ukwa/ukwa-pywb#39

This commit is contained in:
Ilya Kreymer 2019-02-15 14:57:57 -08:00 committed by John Berlin
parent 5da6122d83
commit 3868f5b915
No known key found for this signature in database
GPG Key ID: 6EF5E4B442011B02

View File

@ -260,7 +260,7 @@ class XmlQueryIndexSource(BaseIndexSource):
raise NotFoundException('url {0} not found'.format(url))
if len(items) == 0:
if not items:
raise NotFoundException('url {0} not found'.format(url))
items = items.findall('result')