[booru] reduce exceptions caught during _prepare_post()

don't catch HttpErrors etc.
This commit is contained in:
Mike Fährmann
2020-12-20 17:57:07 +01:00
parent 212ae0c399
commit 78061658ea
2 changed files with 1 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ class BooruExtractor(Extractor):
url = self._prepare_post(post, extended_tags)
if url[0] == "/":
url = self.root + url
except Exception:
except (KeyError, TypeError):
self.log.debug("Unable to fetch download URL for post %s "
"(md5: %s)", post.get("id"), post.get("md5"))
continue