cache_timeout

This commit is contained in:
j 2018-08-01 11:14:21 +02:00
parent bf6c512d3e
commit 704a0c224b

View file

@ -8,7 +8,7 @@ from ox.html import strip_tags
from ox.text import find_re from ox.text import find_re
def read_url(url, timeout=ox.cache.DEFAULT_TIMEOUT): def read_url(url, timeout=ox.cache.cache_timeout):
data = ox.cache.read_url(url, timeout=timeout) data = ox.cache.read_url(url, timeout=timeout)
try: try:
data = data.decode('utf-8') data = data.decode('utf-8')