summaryrefslogtreecommitdiff
path: root/chimere
diff options
context:
space:
mode:
Diffstat (limited to 'chimere')
-rw-r--r--chimere/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/chimere/utils.py b/chimere/utils.py
index 98fb7c7..ba0f205 100644
--- a/chimere/utils.py
+++ b/chimere/utils.py
@@ -1194,7 +1194,8 @@ class HtmlXsltManager(ImportManager):
from chimere.models import Marker
self.marker_cls = Marker
try:
- main_page = urllib.request.urlopen(self.importer_instance.source)
+ main_page = urllib.request.urlopen(self.importer_instance.source,
+ timeout=20)
assert main_page.getcode() == 200
except (urllib.error.URLError, AssertionError):
return (0, 0, _("Source page is unreachable."))