aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/erome.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/erome.py')
-rw-r--r--gallery_dl/extractor/erome.py10
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="', '"')