diff options
| author | 2021-05-03 23:36:45 -0400 | |
|---|---|---|
| committer | 2021-05-03 23:36:45 -0400 | |
| commit | e7eb1f9779f2e223575ab23a6bc1abf2222e7d27 (patch) | |
| tree | 6cfdc1e3da2143801a598a0ba1182d8f7289dc6d /gallery_dl/extractor/erome.py | |
| parent | d27dcd4646242d6da8436f14c7b37ce864355858 (diff) | |
New upstream version 1.17.3.upstream/1.17.3
Diffstat (limited to 'gallery_dl/extractor/erome.py')
| -rw-r--r-- | gallery_dl/extractor/erome.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gallery_dl/extractor/erome.py b/gallery_dl/extractor/erome.py index 2e2e952..d4fd826 100644 --- a/gallery_dl/extractor/erome.py +++ b/gallery_dl/extractor/erome.py @@ -9,7 +9,7 @@ """Extractors for https://www.erome.com/""" from .common import Extractor, Message -from .. import text, util +from .. import text, util, exception from ..cache import cache import itertools import time @@ -32,7 +32,13 @@ class EromeExtractor(Extractor): def items(self): for album_id in self.albums(): url = "{}/a/{}".format(self.root, album_id) - page = self.request(url).text + + try: + page = self.request(url).text + except exception.HttpError as exc: + self.log.warning( + "Unable to fetch album '%s' (%s)", album_id, exc) + continue title, pos = text.extract( page, 'property="og:title" content="', '"') |
