cache_timeout
This commit is contained in:
parent
bf6c512d3e
commit
704a0c224b
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue