fix minor urllist issues

This commit is contained in:
Mike Fährmann
2018-01-19 22:54:15 +01:00
parent 9d69401391
commit b837420291
2 changed files with 4 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ class DownloaderBase():
def download(self, url, pathfmt): def download(self, url, pathfmt):
"""Download the resource at 'url' and write it to a file-like object""" """Download the resource at 'url' and write it to a file-like object"""
try: try:
self.download_impl(url, pathfmt) return self.download_impl(url, pathfmt)
except Exception: except Exception:
print() print()
raise raise

View File

@@ -334,6 +334,9 @@ class TestJob(DownloadJob):
self.update_keyword(keywords) self.update_keyword(keywords)
self.update_content(url) self.update_content(url)
def handle_urllist(self, urls, keywords):
self.handle_url(urls[0], keywords)
def handle_directory(self, keywords): def handle_directory(self, keywords):
self.update_keyword(keywords, False) self.update_keyword(keywords, False)